[CSS Regions] Selection dragged from a region paints its background
https://bugs.webkit.org/show_bug.cgi?id=117607

Reviewed by Alexandru Chiculita.

.:

Add a manual test for the painting of a dragged selection from a region. We don't have an
automated way to test this yet. This test is similar to the other manual selection dragging
tests (e.g. ManualTests/drag-image.html).

* ManualTests/regions/drag-selection-painting.html: Added.

Source/WebCore:

When a RenderFlowThread is in the selection paint phase, tell its layer to paint with the
selection only behavior. This way, only foregrounds and not backgrounds will be painted in
the dragged selection.

Manual test: ManualTests/regions/drag-selection-painting.html

* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::paintFlowThreadPortionInRegion):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move Node::shouldUseInputMethod() to Element.
<http://webkit.org/b/117603>

Reviewed by Antti Koivisto.

This method is only ever called on Elements, so move it off of Node.

* dom/Element.cpp:
(WebCore::Element::shouldUseInputMethod):
* dom/Element.h:
* dom/Node.cpp:
* dom/Node.h:
* html/HTMLInputElement.h:
* html/HTMLTextAreaElement.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<http://webkit.org/b/117612> Web Inspector: "Search Resource Content" should cancel when I remove all text search text

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-06-13
Reviewed by Timothy Hatcher.

* UserInterface/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel):
(WebInspector.ResourceSidebarPanel.prototype._searchFieldInput):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<http://webkit.org/b/117615> Web Inspector: JS PrettyPrinting Should have space between "do" and "{"

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-06-13
Reviewed by Timothy Hatcher.

* UserInterface/CodeMirrorFormatters.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151574 268f45cc-cd09-0410-ab3c-d52691b4dbfc