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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1612683002: Reland of Don't change layout size due to top control show/hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/core/layout/LayoutView.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 6a96778b49ef000ac9f4c4dfac9e611b9f519cdf..88186a58e368e7f72fe904e233c96f6eefafdf0e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -962,16 +962,9 @@
return m_frameView->hasOpaqueBackground();
}
-double LayoutView::layoutViewportWidth() const
-{
- float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
- return viewWidth(IncludeScrollbars) / scale;
-}
-
-double LayoutView::layoutViewportHeight() const
-{
- float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
- return viewHeight(IncludeScrollbars) / scale;
+FloatSize LayoutView::viewportSizeForViewportUnits() const
+{
+ return frameView() ? frameView()->viewportSizeForViewportUnits() : FloatSize();
}
void LayoutView::willBeDestroyed()
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698