Index: Source/core/css/CSSRule.idl |
diff --git a/Source/core/css/CSSRule.idl b/Source/core/css/CSSRule.idl |
index 11ce391caac72f004a71d259504d006bb777bfc5..885f6a93f7d846475440756b558543a7fc1dc8cf 100644 |
--- a/Source/core/css/CSSRule.idl |
+++ b/Source/core/css/CSSRule.idl |
@@ -18,13 +18,13 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-// Introduced in DOM Level 2: |
// http://dev.w3.org/csswg/cssom/#the-cssrule-interface |
+ |
[ |
DependentLifetime, |
WillBeGarbageCollected, |
] interface CSSRule { |
- // RuleType |
+ // TODO(philipj): UNKNOWN_RULE has been removed from the spec. |
const unsigned short UNKNOWN_RULE = 0; |
const unsigned short STYLE_RULE = 1; |
const unsigned short CHARSET_RULE = 2; |
@@ -32,17 +32,29 @@ |
const unsigned short MEDIA_RULE = 4; |
const unsigned short FONT_FACE_RULE = 5; |
const unsigned short PAGE_RULE = 6; |
+ // TODO(philipj): Implement CSSMarginRule. |
+ // const unsigned short MARGIN_RULE = 9; |
+ // TODO(philipj): Implement CSSNamespaceRule. crbug.com/389549 |
+ // const unsigned short NAMESPACE_RULE = 10; |
+ readonly attribute unsigned short type; |
+ attribute DOMString cssText; |
+ readonly attribute CSSRule? parentRule; |
+ readonly attribute CSSStyleSheet? parentStyleSheet; |
+ |
+ // CSS Animations |
+ // http://dev.w3.org/csswg/css-animations/#interface-cssrule |
const unsigned short KEYFRAMES_RULE = 7; |
- const unsigned short WEBKIT_KEYFRAMES_RULE = 7; |
const unsigned short KEYFRAME_RULE = 8; |
- const unsigned short WEBKIT_KEYFRAME_RULE = 8; |
- const unsigned short SUPPORTS_RULE = 12; |
- [RuntimeEnabled=CSSViewport] const unsigned short VIEWPORT_RULE = 15; |
- readonly attribute unsigned short type; |
+ // CSS Conditional Rules |
+ // http://dev.w3.org/csswg/css-conditional/#extentions-to-cssrule-interface |
+ const unsigned short SUPPORTS_RULE = 12; |
- attribute DOMString cssText; |
+ // CSS Device Adaptation |
+ // http://dev.w3.org/csswg/css-device-adapt/#css-rule-interface |
+ [RuntimeEnabled=CSSViewport] const unsigned short VIEWPORT_RULE = 15; |
- readonly attribute CSSStyleSheet parentStyleSheet; |
- readonly attribute CSSRule parentRule; |
+ // Non-standard APIs |
+ const unsigned short WEBKIT_KEYFRAMES_RULE = 7; |
+ const unsigned short WEBKIT_KEYFRAME_RULE = 8; |
}; |