Changeset 170045 in webkit


Ignore:
Timestamp:
Jun 16, 2014 10:35:42 PM (10 years ago)
Author:
mihnea@adobe.com
Message:

[CSSRegions] Region with border radius and overflow:hidden does not clip content
https://bugs.webkit.org/show_bug.cgi?id=133476

Reviewed by Andrei Bucur.

Source/WebCore:
When setting the clip before painting the named flow content,
use the region's foreground rect to take the region's border radius
into account if needed.

Test: fast/regions/region-border-radius-overflow-clip.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::paintFlowThreadIfRegionForFragments):

LayoutTests:

  • fast/regions/region-border-radius-overflow-clip-expected.html: Added.
  • fast/regions/region-border-radius-overflow-clip.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r170034 r170045  
     12014-06-16  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        [CSSRegions] Region with border radius and overflow:hidden does not clip content
     4        https://bugs.webkit.org/show_bug.cgi?id=133476
     5
     6        Reviewed by Andrei Bucur.
     7
     8        * fast/regions/region-border-radius-overflow-clip-expected.html: Added.
     9        * fast/regions/region-border-radius-overflow-clip.html: Added.
     10
    1112014-06-12  Mark Lam  <mark.lam@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r170044 r170045  
     12014-06-16  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        [CSSRegions] Region with border radius and overflow:hidden does not clip content
     4        https://bugs.webkit.org/show_bug.cgi?id=133476
     5
     6        Reviewed by Andrei Bucur.
     7
     8        When setting the clip before painting the named flow content,
     9        use the region's foreground rect to take the region's border radius
     10        into account if needed.
     11
     12        Test: fast/regions/region-border-radius-overflow-clip.html
     13
     14        * rendering/RenderLayer.cpp:
     15        (WebCore::RenderLayer::paintFlowThreadIfRegionForFragments):
     16
    1172014-06-16  Sam Weinig  <sam@webkit.org>
    218
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r170024 r170045  
    67456745        const LayerFragment& fragment = fragments.at(i);
    67466746
    6747         ClipRect clipRect = fragment.backgroundRect;
     6747        ClipRect clipRect = fragment.foregroundRect;
    67486748        if (flowFragment->shouldClipFlowThreadContent())
    67496749            clipRect.intersect(regionClipRect);
Note: See TracChangeset for help on using the changeset viewer.