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

Unified Diff: Source/core/css/CSSParser-in.cpp

Issue 19632002: Support 'extend-to-zoom' viewport descriptor value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed isExtendToZoom() 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/css/CSSParser-in.cpp
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp
index 6d488057a4e092d7ed4c1d009bb61710bd34276d..25743a38921e4874e98788deb9c80c62c0f012c1 100644
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -11435,11 +11435,11 @@ bool CSSParser::parseViewportProperty(CSSPropertyID propId, bool important)
bool validPrimitive = false;
switch (propId) {
- case CSSPropertyMinWidth: // auto | <length> | <percentage>
+ case CSSPropertyMinWidth: // auto | extend-to-zoom | <length> | <percentage>
case CSSPropertyMaxWidth:
case CSSPropertyMinHeight:
case CSSPropertyMaxHeight:
- if (id == CSSValueAuto)
+ if (id == CSSValueAuto || id == CSSValueInternalExtendToZoom)
validPrimitive = true;
else
validPrimitive = (!id && validUnit(value, FLength | FPercent | FNonNeg));
« no previous file with comments | « LayoutTests/css3/device-adapt/viewport-width-extend-to-zoom-expected.txt ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698