summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSRule.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/CSSRule.idl')
-rw-r--r--Source/WebCore/css/CSSRule.idl38
1 files changed, 15 insertions, 23 deletions
diff --git a/Source/WebCore/css/CSSRule.idl b/Source/WebCore/css/CSSRule.idl
index 589f897ca..3069b018b 100644
--- a/Source/WebCore/css/CSSRule.idl
+++ b/Source/WebCore/css/CSSRule.idl
@@ -18,15 +18,13 @@
* Boston, MA 02110-1301, USA.
*/
-// Introduced in DOM Level 2:
[
+ CustomToJSObject,
+ ExportToWrappedFunction,
+ GenerateIsReachable,
JSCustomHeader,
JSCustomMarkFunction,
- GenerateIsReachable,
- CustomToJSObject,
- ObjCPolymorphic,
] interface CSSRule {
-
// RuleType
const unsigned short UNKNOWN_RULE = 0;
const unsigned short STYLE_RULE = 1;
@@ -35,27 +33,21 @@
const unsigned short MEDIA_RULE = 4;
const unsigned short FONT_FACE_RULE = 5;
const unsigned short PAGE_RULE = 6;
- const unsigned short WEBKIT_KEYFRAMES_RULE = 7;
- const unsigned short WEBKIT_KEYFRAME_RULE = 8;
-#if defined(ENABLE_CSS3_CONDITIONAL_RULES) && ENABLE_CSS3_CONDITIONAL_RULES
+ const unsigned short KEYFRAMES_RULE = 7;
+ const unsigned short KEYFRAME_RULE = 8;
+ const unsigned short NAMESPACE_RULE = 10;
const unsigned short SUPPORTS_RULE = 12;
-#endif
-#if defined(ENABLE_CSS_DEVICE_ADAPTATION) && ENABLE_CSS_DEVICE_ADAPTATION
- const unsigned short WEBKIT_VIEWPORT_RULE = 15;
-#endif
-#if defined(ENABLE_CSS_REGIONS) && ENABLE_CSS_REGIONS
- const unsigned short WEBKIT_REGION_RULE = 16;
-#endif
-#if defined(ENABLE_SHADOW_DOM) && ENABLE_SHADOW_DOM
- const unsigned short HOST_RULE = 1001;
-#endif
+ [Conditional=CSS_DEVICE_ADAPTATION] const unsigned short WEBKIT_VIEWPORT_RULE = 15;
+ [Conditional=CSS_REGIONS] const unsigned short WEBKIT_REGION_RULE = 16;
- readonly attribute unsigned short type;
+ // Legacy synonyms for the above, kept to avoid breaking existing content.
+ const unsigned short WEBKIT_KEYFRAMES_RULE = 7;
+ const unsigned short WEBKIT_KEYFRAME_RULE = 8;
- [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesException] attribute DOMString cssText;
+ readonly attribute unsigned short type;
- readonly attribute CSSStyleSheet parentStyleSheet;
- readonly attribute CSSRule parentRule;
+ [SetterMayThrowException] attribute DOMString? cssText;
+ readonly attribute CSSStyleSheet? parentStyleSheet;
+ readonly attribute CSSRule? parentRule;
};
-