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

    r156613 r156816  
    292292{
    293293    HTMLElement* placeholder = textFormControlElement().placeholderElement();
    294     RenderObject* placeholderRenderer = placeholder ? placeholder->renderer() : 0;
     294    RenderElement* placeholderRenderer = placeholder ? placeholder->renderer() : 0;
    295295    if (!placeholderRenderer)
    296296        return 0;
     
    299299        // called from layout() of the parent and the placeholder layout doesn't
    300300        // affect the parent layout.
    301         placeholderRenderer->setChildNeedsLayout(true, MarkOnlyThis);
     301        placeholderRenderer->setChildNeedsLayout(MarkOnlyThis);
    302302    }
    303303    return placeholderRenderer;
Note: See TracChangeset for help on using the changeset viewer.