Changeset 148258 in webkit


Ignore:
Timestamp:
Apr 11, 2013 7:38:32 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Selection gaps don't repaint correctly with transforms
https://bugs.webkit.org/show_bug.cgi?id=111000

Patch by Shezan Baig <Shezan Baig> on 2013-04-11
Reviewed by Simon Fraser.

Source/WebCore:

When computing offsetFromRepaintContainer, we need to add UseTransforms
to the MapCoordinateFlags argument. Note that ApplyContainerFlip is
the default value for the flag, so this change effectively only adds
the UseTransforms flag.

Tests: fast/repaint/selection-gap-absolute-child.html

fast/repaint/selection-gap-fixed-child.html
fast/repaint/selection-gap-flipped-absolute-child.html
fast/repaint/selection-gap-flipped-fixed-child.html
fast/repaint/selection-gap-transformed-absolute-child.html
fast/repaint/selection-gap-transformed-fixed-child.html

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::selectionGapRectsForRepaint):

LayoutTests:

  • fast/repaint/selection-gap-absolute-child-expected.txt: Added.
  • fast/repaint/selection-gap-absolute-child.html: Added.
  • fast/repaint/selection-gap-fixed-child-expected.txt: Added.
  • fast/repaint/selection-gap-fixed-child.html: Added.
  • fast/repaint/selection-gap-flipped-absolute-child-expected.txt: Added.
  • fast/repaint/selection-gap-flipped-absolute-child.html: Added.
  • fast/repaint/selection-gap-flipped-fixed-child-expected.txt: Added.
  • fast/repaint/selection-gap-flipped-fixed-child.html: Added.
  • fast/repaint/selection-gap-transformed-absolute-child-expected.txt: Added.
  • fast/repaint/selection-gap-transformed-absolute-child.html: Added.
  • fast/repaint/selection-gap-transformed-fixed-child-expected.txt: Added.
  • fast/repaint/selection-gap-transformed-fixed-child.html: Added.
Location:
trunk
Files:
12 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r148255 r148258  
     12013-04-11  Shezan Baig  <sbaig1@bloomberg.net>
     2
     3        Selection gaps don't repaint correctly with transforms
     4        https://bugs.webkit.org/show_bug.cgi?id=111000
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/repaint/selection-gap-absolute-child-expected.txt: Added.
     9        * fast/repaint/selection-gap-absolute-child.html: Added.
     10        * fast/repaint/selection-gap-fixed-child-expected.txt: Added.
     11        * fast/repaint/selection-gap-fixed-child.html: Added.
     12        * fast/repaint/selection-gap-flipped-absolute-child-expected.txt: Added.
     13        * fast/repaint/selection-gap-flipped-absolute-child.html: Added.
     14        * fast/repaint/selection-gap-flipped-fixed-child-expected.txt: Added.
     15        * fast/repaint/selection-gap-flipped-fixed-child.html: Added.
     16        * fast/repaint/selection-gap-transformed-absolute-child-expected.txt: Added.
     17        * fast/repaint/selection-gap-transformed-absolute-child.html: Added.
     18        * fast/repaint/selection-gap-transformed-fixed-child-expected.txt: Added.
     19        * fast/repaint/selection-gap-transformed-fixed-child.html: Added.
     20
    1212013-04-11  Ryosuke Niwa  <rniwa@webkit.org>
    222
  • trunk/Source/WebCore/ChangeLog

    r148257 r148258  
     12013-04-11  Shezan Baig  <sbaig1@bloomberg.net>
     2
     3        Selection gaps don't repaint correctly with transforms
     4        https://bugs.webkit.org/show_bug.cgi?id=111000
     5
     6        Reviewed by Simon Fraser.
     7
     8        When computing offsetFromRepaintContainer, we need to add UseTransforms
     9        to the MapCoordinateFlags argument. Note that ApplyContainerFlip is
     10        the default value for the flag, so this change effectively only adds
     11        the UseTransforms flag.
     12
     13        Tests: fast/repaint/selection-gap-absolute-child.html
     14               fast/repaint/selection-gap-fixed-child.html
     15               fast/repaint/selection-gap-flipped-absolute-child.html
     16               fast/repaint/selection-gap-flipped-fixed-child.html
     17               fast/repaint/selection-gap-transformed-absolute-child.html
     18               fast/repaint/selection-gap-transformed-fixed-child.html
     19
     20        * rendering/RenderBlock.cpp:
     21        (WebCore::RenderBlock::selectionGapRectsForRepaint):
     22
    1232013-04-11  Oliver Hunt  <oliver@apple.com>
    224
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r148120 r148258  
    33933393        return GapRects();
    33943394
    3395     // FIXME: this is broken with transforms
    33963395    TransformState transformState(TransformState::ApplyTransformDirection, FloatPoint());
    3397     mapLocalToContainer(repaintContainer, transformState);
     3396    mapLocalToContainer(repaintContainer, transformState, ApplyContainerFlip | UseTransforms);
    33983397    LayoutPoint offsetFromRepaintContainer = roundedLayoutPoint(transformState.mappedPoint());
    33993398
Note: See TracChangeset for help on using the changeset viewer.