Ignore:
Timestamp:
Aug 24, 2013, 3:50:46 PM (12 years ago)
Author:
[email protected]
Message:

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

Reviewed by Darin Adler.

There is now always a Frame, and we can get to it by walking this path:

RenderObject -> Document -> RenderView -> FrameView -> Frame

Removed the customary horde of null checks.

File:
1 edited

Legend:

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

    r154546 r154554  
    6363    rect.moveBy(paintOffset);
    6464
    65     if (Frame* frame = this->frame()) {
    66         if (Page* page = frame->page()) {
    67             if (paintInfo.phase == PaintPhaseForeground)
    68                 page->addRelevantRepaintedObject(this, rect);
    69         }
     65    if (Page* page = frame().page()) {
     66        if (paintInfo.phase == PaintPhaseForeground)
     67            page->addRelevantRepaintedObject(this, rect);
    7068    }
    7169
Note: See TracChangeset for help on using the changeset viewer.