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

Unified Diff: Source/core/platform/Length.h

Issue 19632002: Support 'extend-to-zoom' viewport descriptor value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated after review comments Created 7 years, 5 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/platform/Length.h
diff --git a/Source/core/platform/Length.h b/Source/core/platform/Length.h
index 32ce21f11b18dfb32d00a303b8cd633c8f848461..e15f1f74e50ddce1df106289038ceea61195d3fa 100644
--- a/Source/core/platform/Length.h
+++ b/Source/core/platform/Length.h
@@ -40,6 +40,7 @@ enum LengthType {
MinContent, MaxContent, FillAvailable, FitContent,
Calculated,
ViewportPercentageWidth, ViewportPercentageHeight, ViewportPercentageMin, ViewportPercentageMax,
+ ExtendToZoom,
Undefined
};
@@ -231,6 +232,7 @@ public:
bool isMaxContent() const { return type() == MaxContent; }
bool isFillAvailable() const { return type() == FillAvailable; }
bool isFitContent() const { return type() == FitContent; }
+ bool isExtendToZoom() const { return type() == ExtendToZoom; }
Length blend(const Length& from, double progress) const
{

Powered by Google App Engine
This is Rietveld 408576698