Changeset 148920 in webkit


Ignore:
Timestamp:
Apr 22, 2013 3:39:17 PM (11 years ago)
Author:
betravis@adobe.com
Message:

Do not reuse ExclusionShapeInsideInfo in a recursive region layout
https://bugs.webkit.org/show_bug.cgi?id=114467

Reviewed by David Hyatt.

Source/WebCore:

Elements that respect shape-inside that have inline children should not reuse an
ExclusionShapeInsideInfo for their children's layout. This patch adds the test
for regions. See the details for non-region layout in bug 104582.
https://bugs.webkit.org/show_bug.cgi?id=104582

Test: fast/regions/shape-inside/shape-inside-recursive-layout.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::layoutExclusionShapeInsideInfo): Do not look up a region's
ExclusionShapeInsideInfo if a block is already respecting shape-inside.

LayoutTests:

Test that for various types of inline containers do not reuse
ExclusionShapeInsideInfo when laying out their children.

  • fast/regions/shape-inside/shape-inside-recursive-layout-expected.html: Added.
  • fast/regions/shape-inside/shape-inside-recursive-layout.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r148918 r148920  
     12013-04-22  Bear Travis  <betravis@adobe.com>
     2
     3        Do not reuse ExclusionShapeInsideInfo in a recursive region layout
     4        https://bugs.webkit.org/show_bug.cgi?id=114467
     5
     6        Reviewed by David Hyatt.
     7
     8        Test that for various types of inline containers do not reuse
     9        ExclusionShapeInsideInfo when laying out their children.
     10
     11        * fast/regions/shape-inside/shape-inside-recursive-layout-expected.html: Added.
     12        * fast/regions/shape-inside/shape-inside-recursive-layout.html: Added.
     13
    1142013-04-22  Jessie Berlin  <jberlin@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r148914 r148920  
     12013-04-22  Bear Travis  <betravis@adobe.com>
     2
     3        Do not reuse ExclusionShapeInsideInfo in a recursive region layout
     4        https://bugs.webkit.org/show_bug.cgi?id=114467
     5
     6        Reviewed by David Hyatt.
     7
     8        Elements that respect shape-inside that have inline children should not reuse an
     9        ExclusionShapeInsideInfo for their children's layout. This patch adds the test
     10        for regions. See the details for non-region layout in bug 104582.
     11        https://bugs.webkit.org/show_bug.cgi?id=104582
     12
     13        Test: fast/regions/shape-inside/shape-inside-recursive-layout.html
     14
     15        * rendering/RenderBlockLineLayout.cpp:
     16        (WebCore::RenderBlock::layoutExclusionShapeInsideInfo): Do not look up a region's
     17        ExclusionShapeInsideInfo if a block is already respecting shape-inside.
     18
    1192013-04-22  Martin Robinson  <mrobinson@igalia.com>
    220
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r148781 r148920  
    8585        shapeInsideInfo = 0;
    8686
    87     if (!shapeInsideInfo && flowThreadContainingBlock()) {
     87    if (!shapeInsideInfo && flowThreadContainingBlock() && allowsExclusionShapeInsideInfoSharing()) {
    8888        LayoutUnit offset = logicalHeight() + logicalHeightForLine(this, false);
    8989        RenderRegion* region = regionAtBlockOffset(offset);
Note: See TracChangeset for help on using the changeset viewer.