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

Unified Diff: Source/core/dom/ViewportDescription.h

Issue 268453003: Update viewport trigger for GPU rasterization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | 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/dom/ViewportDescription.h
diff --git a/Source/core/dom/ViewportDescription.h b/Source/core/dom/ViewportDescription.h
index 1e2ec6892127b928d7cd216ba5a9d8678647e545..f96661a2da159ed1332a4d7cdb99f42eca2af3d8 100644
--- a/Source/core/dom/ViewportDescription.h
+++ b/Source/core/dom/ViewportDescription.h
@@ -66,7 +66,10 @@ struct ViewportDescription {
, userZoom(true)
, orientation(ValueAuto)
, deprecatedTargetDensityDPI(ValueAuto)
- , minimalUI(false)
+ , zoomIsExplicit(false)
+ , minZoomIsExplicit(false)
+ , maxZoomIsExplicit(false)
+ , userZoomIsExplicit(false)
{
}
@@ -83,7 +86,13 @@ struct ViewportDescription {
bool userZoom;
float orientation;
float deprecatedTargetDensityDPI; // Only used for Android WebView
- bool minimalUI;
+
+ // Whether the computed value was explicitly specified rather than being
+ // inferred.
+ bool zoomIsExplicit;
+ bool minZoomIsExplicit;
+ bool maxZoomIsExplicit;
+ bool userZoomIsExplicit;
bool operator==(const ViewportDescription& other) const
{
@@ -99,7 +108,10 @@ struct ViewportDescription {
&& userZoom == other.userZoom
&& orientation == other.orientation
&& deprecatedTargetDensityDPI == other.deprecatedTargetDensityDPI
- && minimalUI == other.minimalUI;
+ && zoomIsExplicit == other.zoomIsExplicit
+ && minZoomIsExplicit == other.minZoomIsExplicit
+ && maxZoomIsExplicit == other.maxZoomIsExplicit
+ && userZoomIsExplicit == other.userZoomIsExplicit;
}
bool operator!=(const ViewportDescription& other) const
« no previous file with comments | « no previous file | Source/core/html/HTMLMetaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698