[Conic Gradients] Add support for parsing conic gradients
[WebKit-https.git] / Source / WebCore / css / parser / CSSParserMode.h
index 96719b3..fcb5794 100644 (file)
@@ -96,9 +96,7 @@ public:
     String charset;
     CSSParserMode mode { HTMLStandardMode };
     bool isHTMLDocument { false };
     String charset;
     CSSParserMode mode { HTMLStandardMode };
     bool isHTMLDocument { false };
-#if ENABLE(CSS_GRID_LAYOUT)
     bool cssGridLayoutEnabled { false };
     bool cssGridLayoutEnabled { false };
-#endif
 #if ENABLE(TEXT_AUTOSIZING)
     bool textAutosizingEnabled { false };
 #endif
 #if ENABLE(TEXT_AUTOSIZING)
     bool textAutosizingEnabled { false };
 #endif
@@ -106,8 +104,10 @@ public:
     bool enforcesCSSMIMETypeInNoQuirksMode { true };
     bool useLegacyBackgroundSizeShorthandBehavior { false };
     bool springTimingFunctionEnabled { false };
     bool enforcesCSSMIMETypeInNoQuirksMode { true };
     bool useLegacyBackgroundSizeShorthandBehavior { false };
     bool springTimingFunctionEnabled { false };
-    bool useNewParser { false };
-    
+    bool constantPropertiesEnabled { false };
+    bool conicGradientsEnabled { false };
+    bool deferredCSSParserEnabled { false };
+
     URL completeURL(const String& url) const
     {
         if (url.isNull())
     URL completeURL(const String& url) const
     {
         if (url.isNull())
@@ -116,10 +116,6 @@ public:
             return URL(baseURL, url);
         return URL(baseURL, url, TextEncoding(charset));
     }
             return URL(baseURL, url);
         return URL(baseURL, url, TextEncoding(charset));
     }
-
-#if ENABLE(VARIATION_FONTS)
-    bool variationFontsEnabled { false };
-#endif
 };
 
 bool operator==(const CSSParserContext&, const CSSParserContext&);
 };
 
 bool operator==(const CSSParserContext&, const CSSParserContext&);
@@ -135,9 +131,7 @@ struct CSSParserContextHash {
             hash ^= StringHash::hash(key.charset);
         unsigned bits = key.isHTMLDocument                  << 0
             & key.isHTMLDocument                            << 1
             hash ^= StringHash::hash(key.charset);
         unsigned bits = key.isHTMLDocument                  << 0
             & key.isHTMLDocument                            << 1
-#if ENABLE(CSS_GRID_LAYOUT)
             & key.cssGridLayoutEnabled                      << 2
             & key.cssGridLayoutEnabled                      << 2
-#endif
 #if ENABLE(TEXT_AUTOSIZING)
             & key.textAutosizingEnabled                     << 3
 #endif
 #if ENABLE(TEXT_AUTOSIZING)
             & key.textAutosizingEnabled                     << 3
 #endif
@@ -145,10 +139,8 @@ struct CSSParserContextHash {
             & key.enforcesCSSMIMETypeInNoQuirksMode         << 5
             & key.useLegacyBackgroundSizeShorthandBehavior  << 6
             & key.springTimingFunctionEnabled               << 7
             & key.enforcesCSSMIMETypeInNoQuirksMode         << 5
             & key.useLegacyBackgroundSizeShorthandBehavior  << 6
             & key.springTimingFunctionEnabled               << 7
-            & key.useNewParser                              << 8
-#if ENABLE(VARIATION_FONTS)
-            & key.variationFontsEnabled                     << 9
-#endif
+            & key.conicGradientsEnabled                     << 8
+            & key.deferredCSSParserEnabled                  << 9
             & key.mode                                      << 10;
         hash ^= WTF::intHash(bits);
         return hash;
             & key.mode                                      << 10;
         hash ^= WTF::intHash(bits);
         return hash;