Changeset 151571 in webkit


Ignore:
Timestamp:
Jun 13, 2013 3:32:50 PM (11 years ago)
Author:
mvujovic@adobe.com
Message:

[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):

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r151553 r151571  
     12013-06-13  Max Vujovic  <mvujovic@adobe.com>
     2
     3        [CSS Regions] Selection dragged from a region paints its background
     4        https://bugs.webkit.org/show_bug.cgi?id=117607
     5
     6        Reviewed by Alexandru Chiculita.
     7
     8        Add a manual test for the painting of a dragged selection from a region. We don't have an
     9        automated way to test this yet. This test is similar to the other manual selection dragging
     10        tests (e.g. ManualTests/drag-image.html).
     11
     12        * ManualTests/regions/drag-selection-painting.html: Added.
     13
    1142013-06-13  Xabier Rodriguez Calvar  <calvaris@igalia.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r151570 r151571  
     12013-06-13  Max Vujovic  <mvujovic@adobe.com>
     2
     3        [CSS Regions] Selection dragged from a region paints its background
     4        https://bugs.webkit.org/show_bug.cgi?id=117607
     5
     6        Reviewed by Alexandru Chiculita.
     7
     8        When a RenderFlowThread is in the selection paint phase, tell its layer to paint with the
     9        selection only behavior. This way, only foregrounds and not backgrounds will be painted in
     10        the dragged selection.
     11
     12        Manual test: ManualTests/regions/drag-selection-painting.html
     13
     14        * rendering/RenderFlowThread.cpp:
     15        (WebCore::RenderFlowThread::paintFlowThreadPortionInRegion):
     16
    1172013-06-13  Zoltan Horvath  <zoltan@webkit.org>
    218
  • trunk/Source/WebCore/rendering/RenderFlowThread.cpp

    r151555 r151571  
    307307        if (info.phase == PaintPhaseTextClip)
    308308            paintBehavior |= PaintBehaviorForceBlackText;
     309        else if (info.phase == PaintPhaseSelection)
     310            paintBehavior |= PaintBehaviorSelectionOnly;
    309311
    310312        layer()->paint(context, info.rect, paintBehavior, 0, region, RenderLayer::PaintLayerTemporaryClipRects);
Note: See TracChangeset for help on using the changeset viewer.