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/RenderLayerModelObject.cpp

    r156738 r156816  
    143143        if (!layer() && layerCreationAllowedForSubtree()) {
    144144            if (s_wasFloating && isFloating())
    145                 setChildNeedsLayout(true);
     145                setChildNeedsLayout();
    146146            ensureLayer();
    147147            if (parent() && !needsLayout() && containingBlock()) {
     
    157157        layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_layer
    158158        if (s_wasFloating && isFloating())
    159             setChildNeedsLayout(true);
     159            setChildNeedsLayout();
    160160        if (s_hadTransform)
    161161            setNeedsLayoutAndPrefWidthsRecalc();
     
    165165        layer()->styleChanged(diff, oldStyle);
    166166        if (s_hadLayer && layer()->isSelfPaintingLayer() != s_layerWasSelfPainting)
    167             setChildNeedsLayout(true);
     167            setChildNeedsLayout();
    168168    }
    169169
Note: See TracChangeset for help on using the changeset viewer.