Changeset 214119 in webkit


Ignore:
Timestamp:
Mar 17, 2017 2:12:47 PM (7 years ago)
Author:
Alan Bujtas
Message:

Fix the flow thread state on the descendants of out of flow positioned replaced elements.
https://bugs.webkit.org/show_bug.cgi?id=169821
<rdar://problem/30964017>

Reviewed by Simon Fraser.

Source/WebCore:

Descendants of a replaced out of flow elmement should inherit the flowthread state
from the replaced element and not from the replaced element's parent.

Test: fast/multicol/fix-inherit-when-container-is-replaced.html

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::computedFlowThreadState):

LayoutTests:

  • fast/multicol/fix-inherit-when-container-is-replaced-expected.txt: Added.
  • fast/multicol/fix-inherit-when-container-is-replaced.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r214116 r214119  
     12017-03-17  Zalan Bujtas  <zalan@apple.com>
     2
     3        Fix the flow thread state on the descendants of out of flow positioned replaced elements.
     4        https://bugs.webkit.org/show_bug.cgi?id=169821
     5        <rdar://problem/30964017>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * fast/multicol/fix-inherit-when-container-is-replaced-expected.txt: Added.
     10        * fast/multicol/fix-inherit-when-container-is-replaced.html: Added.
     11
    1122017-03-17  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r214118 r214119  
     12017-03-17  Zalan Bujtas  <zalan@apple.com>
     2
     3        Fix the flow thread state on the descendants of out of flow positioned replaced elements.
     4        https://bugs.webkit.org/show_bug.cgi?id=169821
     5        <rdar://problem/30964017>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Descendants of a replaced out of flow elmement should inherit the flowthread state
     10        from the replaced element and not from the replaced element's parent.
     11
     12        Test: fast/multicol/fix-inherit-when-container-is-replaced.html
     13
     14        * rendering/RenderObject.cpp:
     15        (WebCore::RenderObject::computedFlowThreadState):
     16
    1172017-03-17  Jon Davis  <jond@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r214082 r214119  
    198198        if (auto* svgRoot = SVGRenderSupport::findTreeRootObject(downcast<RenderElement>(renderer)))
    199199            inheritedFlowState = svgRoot->flowThreadState();
    200     } else if (auto* containingBlock = renderer.containingBlock())
    201         inheritedFlowState = containingBlock->flowThreadState();
     200    } else if (auto* container = renderer.container())
     201        inheritedFlowState = container->flowThreadState();
    202202    else {
    203203        // Splitting lines or doing continuation, so just keep the current state.
Note: See TracChangeset for help on using the changeset viewer.