Ignore:
Timestamp:
Oct 14, 2013, 12:58:09 AM (12 years ago)
Author:
[email protected]
Message:

Use RenderElement instead of RenderObject in more places.
<https://webkit.org/b/122734>

Reviewed by Antti Koivisto.

Convert some sites to use RenderElement (or type inference) instead
of RenderObject for less branchy code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderInline.cpp

    r157367 r157388  
    139139}
    140140
    141 static RenderObject* inFlowPositionedInlineAncestor(RenderObject* p)
     141static RenderElement* inFlowPositionedInlineAncestor(RenderElement* p)
    142142{
    143143    while (p && p->isRenderInline()) {
     
    317317        // If inside an inline affected by in-flow positioning the block needs to be affected by it too.
    318318        // Giving the block a layer like this allows it to collect the x/y offsets from inline parents later.
    319         if (RenderObject* positionedAncestor = inFlowPositionedInlineAncestor(this))
     319        if (auto positionedAncestor = inFlowPositionedInlineAncestor(this))
    320320            newStyle->setPosition(positionedAncestor->style()->position());
    321321
Note: See TracChangeset for help on using the changeset viewer.