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

Unified Diff: Source/core/css/CSSParserMode.h

Issue 22917005: New parser mode for CSSOM @viewport descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issues. Created 7 years, 3 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/CSSParserMode.h
diff --git a/Source/core/css/CSSParserMode.h b/Source/core/css/CSSParserMode.h
index 075d2e28cee8decb30770cc301c50c45b906cc30..c6e796d1111b303b0b2741a7296a57ab1f74e24d 100644
--- a/Source/core/css/CSSParserMode.h
+++ b/Source/core/css/CSSParserMode.h
@@ -44,7 +44,9 @@ 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.
+ ViewportMode
eseidel 2013/09/17 22:26:00 If you're willing to go one more round here, it wo
rune 2013/09/18 08:13:09 The main thing about this mode is to use viewport
};
inline CSSParserMode strictToCSSParserMode(bool inStrictMode)
@@ -54,7 +56,7 @@ inline CSSParserMode strictToCSSParserMode(bool inStrictMode)
inline bool isStrictParserMode(CSSParserMode cssParserMode)
{
- return cssParserMode == CSSStrictMode || cssParserMode == SVGAttributeMode || cssParserMode == UASheetMode;
+ return cssParserMode != CSSQuirksMode;
}
struct CSSParserContext {

Powered by Google App Engine
This is Rietveld 408576698