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

    r156767 r156816  
    127127    m_breakBeforeToRegionMap.clear();
    128128    m_breakAfterToRegionMap.clear();
    129     setNeedsLayout(true);
     129    setNeedsLayout();
    130130
    131131    m_regionsInvalidated = true;
     
    966966        // FIXME: We need to find a way to avoid marking all the regions ancestors for layout
    967967        // as we are already inside layout.
    968         region->setNeedsLayout(true);
     968        region->setNeedsLayout();
    969969    }
    970970}
Note: See TracChangeset for help on using the changeset viewer.