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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1162623007: Removed redundant rect methods on FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/web/WebRemoteFrameImpl.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 875c6cf7532ce85d3f1759f72fb65e60eae3792b..077464275aec7d29659fc5407c86c16fd6807785 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1829,8 +1829,8 @@ void WebViewImpl::didUpdateTopControls()
if (settings() && settings()->mainFrameResizesAreOrientationChanges()) {
// Shrink the FrameView by the amount that will maintain the aspect-ratio with the PinchViewport.
float aspectRatio = pinchViewport.visibleRect().width() / pinchViewport.visibleRect().height();
- float newHeight = view->unscaledVisibleContentSize(ExcludeScrollbars).width() / aspectRatio;
- float adjustment = newHeight - view->unscaledVisibleContentSize(ExcludeScrollbars).height();
+ float newHeight = view->visibleContentSize(ExcludeScrollbars).width() / aspectRatio;
+ float adjustment = newHeight - view->visibleContentSize(ExcludeScrollbars).height();
view->setTopControlsViewportAdjustment(adjustment);
}
}
« no previous file with comments | « Source/web/WebRemoteFrameImpl.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698