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

    r154326 r154546  
    455455
    456456    if (!parent()->isFrameSet() && !document()->printing()) {
    457         setWidth(view()->viewWidth());
    458         setHeight(view()->viewHeight());
     457        setWidth(view().viewWidth());
     458        setHeight(view().viewHeight());
    459459    }
    460460
Note: See TracChangeset for help on using the changeset viewer.