summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSRule.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSRule.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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;
};
-