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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2720723004: Remove FrameHost setDefaultPageScaleLimits/UserAgentPageScaleConstraints (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 8a38208b82174a374b576187f2450ca2c8b40ac8..367265b73ddcc5698db54cb1171979c80fd23e13 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3043,7 +3043,7 @@ void WebViewImpl::disableAutoResizeMode() {
}
void WebViewImpl::setDefaultPageScaleLimits(float minScale, float maxScale) {
- return page()->frameHost().setDefaultPageScaleLimits(minScale, maxScale);
+ return page()->setDefaultPageScaleLimits(minScale, maxScale);
}
void WebViewImpl::setInitialPageScaleOverride(
@@ -3056,7 +3056,7 @@ void WebViewImpl::setInitialPageScaleOverride(
return;
pageScaleConstraintsSet().setNeedsReset(true);
- page()->frameHost().setUserAgentPageScaleConstraints(constraints);
+ page()->setUserAgentPageScaleConstraints(constraints);
}
void WebViewImpl::setMaximumLegibleScale(float maximumLegibleScale) {
@@ -3075,7 +3075,7 @@ void WebViewImpl::setIgnoreViewportTagScaleLimits(bool ignore) {
constraints.minimumScale = -1;
constraints.maximumScale = -1;
}
- page()->frameHost().setUserAgentPageScaleConstraints(constraints);
+ page()->setUserAgentPageScaleConstraints(constraints);
}
IntSize WebViewImpl::mainFrameSize() {
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698