Changeset 93721 in webkit


Ignore:
Timestamp:
Aug 24, 2011 12:53:32 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[CSSRegions] RenderRegion is not used if there's another renderer after it
https://bugs.webkit.org/show_bug.cgi?id=66844

Source/WebCore:

There was no call to attachRegion in RenderObjectChildList::insertChildNode, so
the region was not added to the RenderFlowThread.

Patch by Alexandru Chiculita <Alexandru Chiculita> on 2011-08-24
Reviewed by David Hyatt.

Test: fast/regions/content-flowed-into-regions-dynamically-inserted.html

  • rendering/RenderObjectChildList.cpp:

(WebCore::RenderObjectChildList::insertChildNode):

LayoutTests:

Patch by Alexandru Chiculita <Alexandru Chiculita> on 2011-08-24
Reviewed by David Hyatt.

  • fast/regions/content-flowed-into-regions-dynamically-inserted-expected.png: Added.
  • fast/regions/content-flowed-into-regions-dynamically-inserted-expected.txt: Added.
  • fast/regions/content-flowed-into-regions-dynamically-inserted.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r93718 r93721  
     12011-08-24  Alexandru Chiculita  <achicu@adobe.com>
     2
     3        [CSSRegions] RenderRegion is not used if there's another renderer after it
     4        https://bugs.webkit.org/show_bug.cgi?id=66844
     5
     6        Reviewed by David Hyatt.
     7
     8        * fast/regions/content-flowed-into-regions-dynamically-inserted-expected.png: Added.
     9        * fast/regions/content-flowed-into-regions-dynamically-inserted-expected.txt: Added.
     10        * fast/regions/content-flowed-into-regions-dynamically-inserted.html: Added.
     11
    1122011-08-23  Peter Kasting  <pkasting@google.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r93717 r93721  
     12011-08-24  Alexandru Chiculita  <achicu@adobe.com>
     2
     3        [CSSRegions] RenderRegion is not used if there's another renderer after it
     4        https://bugs.webkit.org/show_bug.cgi?id=66844
     5
     6        There was no call to attachRegion in RenderObjectChildList::insertChildNode, so
     7        the region was not added to the RenderFlowThread.
     8
     9        Reviewed by David Hyatt.
     10
     11        Test: fast/regions/content-flowed-into-regions-dynamically-inserted.html
     12
     13        * rendering/RenderObjectChildList.cpp:
     14        (WebCore::RenderObjectChildList::insertChildNode):
     15
    1162011-08-24  Sam Weinig  <sam@webkit.org>
    217
  • trunk/Source/WebCore/rendering/RenderObjectChildList.cpp

    r93708 r93721  
    260260        if (!child->isFloating() && owner->childrenInline())
    261261            owner->dirtyLinesFromChangedChild(child);
    262        
     262
     263        if (child->isRenderRegion())
     264            toRenderRegion(child)->attachRegion();
     265
    263266        if (RenderFlowThread* containerFlowThread = renderFlowThreadContainer(owner))
    264267            containerFlowThread->addFlowChild(child, beforeChild);
Note: See TracChangeset for help on using the changeset viewer.