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

    r156738 r156816  
    8383            // itself.
    8484            for (RenderTableCell* cell = firstCell(); cell; cell = cell->nextCell())
    85                 cell->setChildNeedsLayout(true, MarkOnlyThis);
     85                cell->setChildNeedsLayout(MarkOnlyThis);
    8686        }
    8787    }
     
    164164    for (RenderTableCell* cell = firstCell(); cell; cell = cell->nextCell()) {
    165165        if (!cell->needsLayout() && paginated && view().layoutState()->pageLogicalHeight() && view().layoutState()->pageLogicalOffset(cell, cell->logicalTop()) != cell->pageLogicalOffset())
    166             cell->setChildNeedsLayout(true, MarkOnlyThis);
     166            cell->setChildNeedsLayout(MarkOnlyThis);
    167167
    168168        if (cell->needsLayout()) {
     
    184184    statePusher.pop();
    185185    // RenderTableSection::layoutRows will set our logical height and width later, so it calls updateLayerTransform().
    186     setNeedsLayout(false);
     186    clearNeedsLayout();
    187187}
    188188
Note: See TracChangeset for help on using the changeset viewer.