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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback Created 3 years, 10 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
Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index d8fa942ef20847f9fbbbc7d8cd63fe1d1739df1c..9be42a68fd25091e5c8f39a52beb20b7930ee61f 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -254,7 +254,7 @@ bool VisualViewport::didSetScaleOrLocation(float scale,
if (scale != m_scale) {
m_scale = scale;
valuesChanged = true;
- frameHost().chromeClient().pageScaleFactorChanged();
+ frameHost().page().chromeClient().pageScaleFactorChanged();
enqueueResizeEvent();
}
@@ -296,8 +296,8 @@ bool VisualViewport::magnifyScaleAroundAnchor(float magnifyDelta,
const FloatPoint& anchor) {
const float oldPageScale = scale();
const float newPageScale =
- frameHost().chromeClient().clampPageScaleFactorToLimits(magnifyDelta *
- oldPageScale);
+ frameHost().page().chromeClient().clampPageScaleFactorToLimits(
+ magnifyDelta * oldPageScale);
if (newPageScale == oldPageScale)
return false;
if (!mainFrame() || !mainFrame()->view())
@@ -502,7 +502,7 @@ bool VisualViewport::scrollAnimatorEnabled() const {
}
HostWindow* VisualViewport::getHostWindow() const {
- return &frameHost().chromeClient();
+ return &frameHost().page().chromeClient();
}
bool VisualViewport::shouldUseIntegerScrollOffset() const {
« no previous file with comments | « third_party/WebKit/Source/core/frame/Screen.cpp ('k') | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698