Ignore:
Timestamp:
Oct 2, 2013, 7:26:52 PM (12 years ago)
Author:
Antti Koivisto
Message:

Move setting of some layout bits to RenderElement
https://bugs.webkit.org/show_bug.cgi?id=122256

Reviewed by Andreas Kling.

These bits never apply to RenderText nodes:

normalChildNeedsLayout
posChildNeedsLayout
needsSimplifiedNormalFlowLayout
normalChildNeedsLayout
positionedMovementLayout

The code for setting them can be moved to RenderElement.

Also separated the code paths for setting and clearing the bits and uninlined
everything that is not massively popular.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderMultiColumnBlock.cpp

    r155825 r156816  
    117117                RenderMultiColumnSet* multicolSet = toRenderMultiColumnSet(childBox);
    118118                if (multicolSet->calculateBalancedHeight(firstPass)) {
    119                     multicolSet->setChildNeedsLayout(true, MarkOnlyThis);
     119                    multicolSet->setChildNeedsLayout(MarkOnlyThis);
    120120                    needsRelayout = true;
    121121                }
     
    125125            // Layout again. Column balancing resulted in a new height.
    126126            neededRelayout = true;
    127             m_flowThread->setChildNeedsLayout(true, MarkOnlyThis);
    128             setChildNeedsLayout(true, MarkOnlyThis);
     127            m_flowThread->setChildNeedsLayout(MarkOnlyThis);
     128            setChildNeedsLayout(MarkOnlyThis);
    129129            if (firstPass)
    130130                statePusher.pop();
     
    171171
    172172    if (relayoutChildren)
    173         m_flowThread->setChildNeedsLayout(true, MarkOnlyThis);
     173        m_flowThread->setChildNeedsLayout(MarkOnlyThis);
    174174   
    175175    setLogicalTopForChild(m_flowThread, borderAndPaddingBefore());
Note: See TracChangeset for help on using the changeset viewer.