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

    r156738 r156816  
    185185    repainter.repaintAfterLayout();
    186186
    187     setNeedsLayout(false);
     187    clearNeedsLayout();
    188188}
    189189
     
    368368    // 2) Relayout if the column track's used breadth changed OR the logical height is unavailable.
    369369    if (!child->needsLayout())
    370         child->setNeedsLayout(true, MarkOnlyThis);
     370        child->setNeedsLayout(MarkOnlyThis);
    371371
    372372    child->setOverrideContainingBlockContentLogicalWidth(gridAreaBreadthForChild(child, ForColumns, columnTracks));
     
    675675        LayoutUnit overrideContainingBlockContentLogicalHeight = gridAreaBreadthForChild(child, ForRows, rowTracks);
    676676        if (oldOverrideContainingBlockContentLogicalWidth != overrideContainingBlockContentLogicalWidth || oldOverrideContainingBlockContentLogicalHeight != overrideContainingBlockContentLogicalHeight)
    677             child->setNeedsLayout(true, MarkOnlyThis);
     677            child->setNeedsLayout(MarkOnlyThis);
    678678
    679679        child->setOverrideContainingBlockContentLogicalWidth(overrideContainingBlockContentLogicalWidth);
Note: See TracChangeset for help on using the changeset viewer.