Ignore:
Timestamp:
Oct 3, 2013, 9:04:35 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/RenderFrameSet.cpp

    r156822 r156876  
    489489    }
    490490
    491     setNeedsLayout(false);
     491    clearNeedsLayout();
    492492}
    493493
     
    514514                child->setWidth(width);
    515515                child->setHeight(height);
    516                 child->setNeedsLayout(true);
     516                child->setNeedsLayout();
    517517                child->layout();
    518518            }
     
    531531        child->setWidth(0);
    532532        child->setHeight(0);
    533         child->setNeedsLayout(false);
     533        child->clearNeedsLayout();
    534534    }
    535535}
     
    568568            child->setHeight(height);
    569569
    570             child->setNeedsLayout(true);
     570            child->setNeedsLayout();
    571571
    572572            if (child->isFrameSet())
     
    612612
    613613                // update to final size
    614                 child->setNeedsLayout(true);
     614                child->setNeedsLayout();
    615615                if (child->isFrameSet())
    616616                    toRenderFrameSet(child)->layout();
     
    639639        child->setWidth(0);
    640640        child->setHeight(0);
    641         child->setNeedsLayout(false);
     641        child->clearNeedsLayout();
    642642    }
    643643}
     
    671671    axis.m_deltas[axis.m_splitBeingResized - 1] += delta;
    672672    axis.m_deltas[axis.m_splitBeingResized] -= delta;
    673     setNeedsLayout(true);
     673    setNeedsLayout();
    674674}
    675675
Note: See TracChangeset for help on using the changeset viewer.