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

Unified Diff: Source/core/css/MediaValuesCached.cpp

Issue 1104103002: Add <meta viewport> support to the preloader (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved CachedDocumentParameters constructor to private Created 5 years, 8 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/core/css/MediaValuesCached.h ('k') | Source/core/html/HTMLMetaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaValuesCached.cpp
diff --git a/Source/core/css/MediaValuesCached.cpp b/Source/core/css/MediaValuesCached.cpp
index f80c651713a750c94ab26c14fca03106be9cff64..b13634f5b9a2b383f79291f15bf1509704883994 100644
--- a/Source/core/css/MediaValuesCached.cpp
+++ b/Source/core/css/MediaValuesCached.cpp
@@ -177,4 +177,14 @@ bool MediaValuesCached::hasValues() const
return true;
}
+void MediaValuesCached::setViewportWidth(int width)
+{
+ m_data.viewportWidth = width;
+}
+
+void MediaValuesCached::setViewportHeight(int height)
+{
+ m_data.viewportHeight = height;
+}
+
} // namespace
« no previous file with comments | « Source/core/css/MediaValuesCached.h ('k') | Source/core/html/HTMLMetaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698