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

    r156622 r156816  
    219219    // doesn't change the logical height.
    220220    if (intrinsicPaddingBefore != oldIntrinsicPaddingBefore || intrinsicPaddingAfter != oldIntrinsicPaddingAfter)
    221         setNeedsLayout(true, MarkOnlyThis);
     221        setNeedsLayout(MarkOnlyThis);
    222222}
    223223
     
    231231        return;
    232232
    233     setNeedsLayout(true, MarkOnlyThis);
    234     row()->setChildNeedsLayout(true, MarkOnlyThis);
     233    setNeedsLayout(MarkOnlyThis);
     234    row()->setChildNeedsLayout(MarkOnlyThis);
    235235
    236236    if (!table()->selfNeedsLayout() && checkForRepaintDuringLayout())
     
    256256        int newIntrinsicPaddingBefore = max<LayoutUnit>(0, intrinsicPaddingBefore() - max<LayoutUnit>(0, cellBaselinePosition() - oldCellBaseline));
    257257        setIntrinsicPaddingBefore(newIntrinsicPaddingBefore);
    258         setNeedsLayout(true, MarkOnlyThis);
     258        setNeedsLayout(MarkOnlyThis);
    259259        layoutBlock(cellWidthChanged());
    260260    }
Note: See TracChangeset for help on using the changeset viewer.