Ignore:
Timestamp:
Oct 28, 2013, 7:58:43 PM (12 years ago)
Author:
[email protected]
Message:

RenderElement::style() should return a reference.
<https://webkit.org/b/123414>

Now that renderers always have style, go ahead and make style()
return a RenderStyle&.

There are countless opportunities for further cleanup enabled by
this change. I'm simply passing &style() in many cases where we
can really do something nicer instead.

Reviewed by Anders Carlsson.

File:
1 edited

Legend:

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

    r158097 r158163  
    9292bool RenderIFrame::requiresLayer() const
    9393{
    94     return RenderFrameBase::requiresLayer() || style()->resize() != RESIZE_NONE;
     94    return RenderFrameBase::requiresLayer() || style().resize() != RESIZE_NONE;
    9595}
    9696
     
    115115        return false;
    116116
    117     if (style()->width().isFixed() && style()->height().isFixed()) {
     117    if (style().width().isFixed() && style().height().isFixed()) {
    118118        // Do not flatten iframes with scrolling="no".
    119119        if (iframeElement().scrollingMode() == ScrollbarAlwaysOff)
    120120            return false;
    121         if (style()->width().value() <= 0 || style()->height().value() <= 0)
     121        if (style().width().value() <= 0 || style().height().value() <= 0)
    122122            return false;
    123123    }
     
    167167
    168168        if (flattenFrame())
    169             layoutWithFlattening(style()->width().isFixed(), style()->height().isFixed());
     169            layoutWithFlattening(style().width().isFixed(), style().height().isFixed());
    170170    }
    171171
Note: See TracChangeset for help on using the changeset viewer.