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

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

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/layout/LayoutView.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.h b/third_party/WebKit/Source/core/layout/LayoutView.h
index 633bc93a134e95507a6864c52e59207c53968806..7fee537cc7d6e9cbc496bbe58d8aee71a8d0a750 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.h
+++ b/third_party/WebKit/Source/core/layout/LayoutView.h
@@ -183,8 +183,8 @@ public:
bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override;
- double layoutViewportWidth() const;
- double layoutViewportHeight() const;
+ // Returns the viewport size in (CSS pixels) that vh and vw units are calculated from.
+ FloatSize viewportSizeForViewportUnits() const;
void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutState; }
void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState->next(); }

Powered by Google App Engine
This is Rietveld 408576698