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

    r154488 r154546  
    4646{
    4747    // Actual size is not known yet, report the default intrinsic size.
    48     view()->frameView().incrementVisuallyNonEmptyPixelCount(roundedIntSize(intrinsicSize()));
     48    view().frameView().incrementVisuallyNonEmptyPixelCount(roundedIntSize(intrinsicSize()));
    4949}
    5050
Note: See TracChangeset for help on using the changeset viewer.