Changeset 95567 in webkit


Ignore:
Timestamp:
Sep 20, 2011 1:26:13 PM (13 years ago)
Author:
hyatt@apple.com
Message:

Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=68314

Make sure that the containing block loop when clipping to border-radius
terminates by checking if you hit the RenderView. Null checking isn't sufficient
for stupid historical reasons that should be fixed (i.e., the RenderView returns itself
as its own containing block, even though this should just be changed).

Reviewed by Simon Fraser and Darin Adler.

Added new test in fast/clip.

  • rendering/RenderLayer.cpp:

(WebCore::inContainingBlockChain):

LayoutTests: https://bugs.webkit.org/show_bug.cgi?id=68314

Added some more clipping tests for overflow to make sure the right things happen
when border-radius is specified.

Reviewed by Simon Fraser and Darin Adler.

  • fast/clip/overflow-border-radius-fixed-position.html: Added.
  • platform/mac/fast/clip/overflow-border-radius-fixed-position-expected.png: Added.
  • platform/mac/fast/clip/overflow-border-radius-fixed-position-expected.txt: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95566 r95567  
     12011-09-20  David Hyatt  <hyatt@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=68314
     4       
     5        Added some more clipping tests for overflow to make sure the right things happen
     6        when border-radius is specified.
     7
     8        Reviewed by Simon Fraser and Darin Adler.
     9
     10        * fast/clip/overflow-border-radius-fixed-position.html: Added.
     11        * platform/mac/fast/clip/overflow-border-radius-fixed-position-expected.png: Added.
     12        * platform/mac/fast/clip/overflow-border-radius-fixed-position-expected.txt: Added.
     13
    1142011-09-20  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r95566 r95567  
     12011-09-20  David Hyatt  <hyatt@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=68314
     4
     5        Make sure that the containing block loop when clipping to border-radius
     6        terminates by checking if you hit the RenderView. Null checking isn't sufficient
     7        for stupid historical reasons that should be fixed (i.e., the RenderView returns itself
     8        as its own containing block, even though this should just be changed).
     9
     10        Reviewed by Simon Fraser and Darin Adler.
     11
     12        Added new test in fast/clip.
     13
     14        * rendering/RenderLayer.cpp:
     15        (WebCore::inContainingBlockChain):
     16
    1172011-09-20  Dan Bernstein  <mitz@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r95239 r95567  
    25602560        return true;
    25612561   
    2562     for (RenderBlock* currentBlock = startLayer->renderer()->containingBlock(); currentBlock; currentBlock = currentBlock->containingBlock()) {
     2562    RenderView* view = startLayer->renderer()->view();
     2563    for (RenderBlock* currentBlock = startLayer->renderer()->containingBlock(); currentBlock && currentBlock != view; currentBlock = currentBlock->containingBlock()) {
    25632564        if (currentBlock->layer() == endLayer)
    25642565            return true;
Note: See TracChangeset for help on using the changeset viewer.