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

Unified Diff: Source/core/page/Frame.cpp

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Frame.cpp
diff --git a/Source/core/page/Frame.cpp b/Source/core/page/Frame.cpp
index 8171379c930a787965122bdbd84ddcebba95a03f..64eefd444a8b3ca5e6683a850fabc096f34f82f1 100644
--- a/Source/core/page/Frame.cpp
+++ b/Source/core/page/Frame.cpp
@@ -296,7 +296,7 @@ void Frame::setDocument(PassRefPtr<Document> newDoc)
if (m_page && m_page->mainFrame() == this) {
notifyChromeClientWheelEventHandlerCountChanged();
if (m_doc && m_doc->hasTouchEventHandlers())
- m_page->chrome()->client()->needTouchEvents(true);
+ m_page->chrome().client()->needTouchEvents(true);
}
}
@@ -651,7 +651,7 @@ void Frame::deviceOrPageScaleFactorChanged()
for (RefPtr<Frame> child = tree()->firstChild(); child; child = child->tree()->nextSibling())
child->deviceOrPageScaleFactorChanged();
- m_page->chrome()->client()->deviceOrPageScaleFactorChanged();
+ m_page->chrome().client()->deviceOrPageScaleFactorChanged();
}
void Frame::notifyChromeClientWheelEventHandlerCountChanged() const
@@ -665,7 +665,7 @@ void Frame::notifyChromeClientWheelEventHandlerCountChanged() const
count += frame->document()->wheelEventHandlerCount();
}
- m_page->chrome()->client()->numWheelEventHandlersChanged(count);
+ m_page->chrome().client()->numWheelEventHandlersChanged(count);
}
bool Frame::isURLAllowed(const KURL& url) const
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698