Index: Source/core/css/CSSParserMode.h |
diff --git a/Source/core/css/CSSParserMode.h b/Source/core/css/CSSParserMode.h |
index 075d2e28cee8decb30770cc301c50c45b906cc30..6a40a5f72271dec843a0741b48c4960b6052e072 100644 |
--- a/Source/core/css/CSSParserMode.h |
+++ b/Source/core/css/CSSParserMode.h |
@@ -44,7 +44,10 @@ enum CSSParserMode { |
SVGAttributeMode, |
// User agent style sheet should always be in strict mode. Enables internal |
// only properties and values. |
- UASheetMode |
+ UASheetMode, |
+ // Parsing @viewport descriptors. Always strict. Set as mode on StylePropertySet |
+ // to make sure CSSOM modifications use CSSParser::parseViewportProperty. |
+ ViewportMode |
}; |
inline CSSParserMode strictToCSSParserMode(bool inStrictMode) |
@@ -54,7 +57,7 @@ inline CSSParserMode strictToCSSParserMode(bool inStrictMode) |
inline bool isStrictParserMode(CSSParserMode cssParserMode) |
{ |
- return cssParserMode == CSSStrictMode || cssParserMode == SVGAttributeMode || cssParserMode == UASheetMode; |
+ return cssParserMode != CSSQuirksMode; |
} |
struct CSSParserContext { |