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

    r156738 r156816  
    415415    if (logicalWidth() != oldLogicalWidth) {
    416416        for (unsigned i = 0; i < m_captions.size(); i++)
    417             m_captions[i]->setNeedsLayout(true, MarkOnlyThis);
     417            m_captions[i]->setNeedsLayout(MarkOnlyThis);
    418418    }
    419419    // FIXME: The optimisation below doesn't work since the internal table
     
    435435            RenderTableSection* section = toRenderTableSection(child);
    436436            if (m_columnLogicalWidthChanged)
    437                 section->setChildNeedsLayout(true, MarkOnlyThis);
     437                section->setChildNeedsLayout(MarkOnlyThis);
    438438            section->layoutIfNeeded();
    439439            totalSectionLogicalHeight += section->calcRowLogicalHeight();
     
    557557
    558558    m_columnLogicalWidthChanged = false;
    559     setNeedsLayout(false);
     559    clearNeedsLayout();
    560560}
    561561
Note: See TracChangeset for help on using the changeset viewer.