Ignore:
Timestamp:
Aug 24, 2013, 9:33:15 AM (12 years ago)
Author:
[email protected]
Message:

RenderObject::view() should return a reference.
<https://webkit.org/b/120247>

Reviewed by Antti Koivisto.

Now that the lifetime and accessibility characteristics of RenderView are well-defined,
we can make RenderObject::view() return a reference, exposing a plethora of unnecessary
null checks.

File:
1 edited

Legend:

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

    r153990 r154546  
    337337    setLogicalHeight(borderAndPaddingLogicalHeight() + scrollbarLogicalHeight());
    338338
    339     LayoutStateMaintainer statePusher(view(), this, locationOffset(), hasTransform() || hasReflection() || style()->isFlippedBlocksWritingMode());
     339    LayoutStateMaintainer statePusher(&view(), this, locationOffset(), hasTransform() || hasReflection() || style()->isFlippedBlocksWritingMode());
    340340
    341341    // Regions changing widths can force us to relayout our children.
     
    915915void RenderFlexibleBox::computeMainAxisPreferredSizes(OrderHashSet& orderValues)
    916916{
    917     RenderView* renderView = view();
     917    RenderView* renderView = &view();
    918918    for (RenderBox* child = firstChildBox(); child; child = child->nextSiblingBox()) {
    919919        orderValues.add(child->style()->order());
Note: See TracChangeset for help on using the changeset viewer.