Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutFrame.cpp

Issue 2849403002: Use const ref for LocalFrame::LocalFrameRoot and FrameTree::Top (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 void LayoutFrame::ImageChanged(WrappedImagePtr image, const IntRect*) { 43 void LayoutFrame::ImageChanged(WrappedImagePtr image, const IntRect*) {
44 if (const CursorList* cursors = Style()->Cursors()) { 44 if (const CursorList* cursors = Style()->Cursors()) {
45 for (const CursorData& cursor : *cursors) { 45 for (const CursorData& cursor : *cursors) {
46 if (cursor.GetImage() && cursor.GetImage()->CachedImage() == image) { 46 if (cursor.GetImage() && cursor.GetImage()->CachedImage() == image) {
47 if (LocalFrame* frame = this->GetFrame()) { 47 if (LocalFrame* frame = this->GetFrame()) {
48 // Cursor update scheduling is done by the local root, which is the 48 // Cursor update scheduling is done by the local root, which is the
49 // main frame if there are no RemoteFrame ancestors in the frame tree. 49 // main frame if there are no RemoteFrame ancestors in the frame tree.
50 // Use of localFrameRoot() is discouraged but will change when cursor 50 // Use of localFrameRoot() is discouraged but will change when cursor
51 // update scheduling is moved from EventHandler to PageEventHandler. 51 // update scheduling is moved from EventHandler to PageEventHandler.
52 frame->LocalFrameRoot()->GetEventHandler().ScheduleCursorUpdate(); 52 frame->LocalFrameRoot().GetEventHandler().ScheduleCursorUpdate();
53 } 53 }
54 } 54 }
55 } 55 }
56 } 56 }
57 } 57 }
58 58
59 void LayoutFrame::UpdateFromElement() { 59 void LayoutFrame::UpdateFromElement() {
60 if (Parent() && Parent()->IsFrameSet()) 60 if (Parent() && Parent()->IsFrameSet())
61 ToLayoutFrameSet(Parent())->NotifyFrameEdgeInfoChanged(); 61 ToLayoutFrameSet(Parent())->NotifyFrameEdgeInfoChanged();
62 } 62 }
63 63
64 } // namespace blink 64 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698