summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSRule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/CSSRule.h')
-rw-r--r--Source/WebCore/css/CSSRule.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/css/CSSRule.h b/Source/WebCore/css/CSSRule.h
index b31fe7b8d..ab3004887 100644
--- a/Source/WebCore/css/CSSRule.h
+++ b/Source/WebCore/css/CSSRule.h
@@ -57,6 +57,9 @@ public:
// <https://bugs.webkit.org/show_bug.cgi?id=71293>.
WEBKIT_KEYFRAMES_RULE,
WEBKIT_KEYFRAME_RULE,
+#if ENABLE(CSS_DEVICE_ADAPTATION)
+ WEBKIT_VIEWPORT_RULE = 15,
+#endif
#if ENABLE(CSS_REGIONS)
WEBKIT_REGION_RULE = 16
#endif
@@ -73,6 +76,10 @@ public:
bool isStyleRule() const { return type() == STYLE_RULE; }
bool isImportRule() const { return type() == IMPORT_RULE; }
+#if ENABLE(CSS_DEVICE_ADAPTATION)
+ bool isViewportRule() const { return type() == WEBKIT_VIEWPORT_RULE; }
+#endif
+
#if ENABLE(CSS_REGIONS)
bool isRegionRule() const { return type() == WEBKIT_REGION_RULE; }
#endif