[CSS Regions] Selection dragged from a region paints its background
authormvujovic@adobe.com <mvujovic@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jun 2013 22:32:50 +0000 (22:32 +0000)
committermvujovic@adobe.com <mvujovic@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jun 2013 22:32:50 +0000 (22:32 +0000)
commit82df8e0bb3e581c128f755d67f37a728a3d4f2b1
treec58d3fb93fef0ac4da9336e4da2364c30b5df213
parentde1c191a9daade1cb425843612083263e0e837b6
[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: https://svn.webkit.org/repository/webkit/trunk@151571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/regions/drag-selection-painting.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderFlowThread.cpp