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

Unified Diff: Source/core/dom/Document.cpp

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 62e6410a5515047eccc3a4c7b5a594a390d8a534..7db025bea275f959b67e510aaf81b9424b6737a9 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5271,14 +5271,12 @@ IntSize Document::viewportSize() const
return view()->visibleContentRect(ScrollableArea::IncludeScrollbars).size();
}
-#if ENABLE(CSS_DEVICE_ADAPTATION)
IntSize Document::initialViewportSize() const
{
if (!view())
return IntSize();
- return view()->initialViewportSize();
+ return view()->unscaledVisibleContentSize(ScrollableArea::IncludeScrollbars);
}
-#endif
Node* eventTargetNodeForDocument(Document* doc)
{

Powered by Google App Engine
This is Rietveld 408576698