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

Unified Diff: third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp

Issue 1573283002: 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
Index: third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
index a3c732e76462eca123abe0a46af7f6eb91b38f68..e1e4e0dd0935ad9f83a7339c00ebf56186e07234 100644
--- a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
+++ b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp
@@ -68,8 +68,8 @@ float CSSToLengthConversionData::FontSizes::ch() const
}
CSSToLengthConversionData::ViewportSize::ViewportSize(const LayoutView* layoutView)
- : m_width(layoutView ? layoutView->layoutViewportWidth() : 0)
- , m_height(layoutView ? layoutView->layoutViewportHeight() : 0)
+ : m_width(layoutView ? layoutView->viewportSizeForViewportUnits().width() : 0)
+ , m_height(layoutView ? layoutView->viewportSizeForViewportUnits().height() : 0)
{
}

Powered by Google App Engine
This is Rietveld 408576698