Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: Source/core/css/CSSRule.idl

Issue 1054303004: Sync CSS interfaces with the specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSPageRule.idl ('k') | Source/core/css/CSSRuleList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/core/css/CSSPageRule.idl ('k') | Source/core/css/CSSRuleList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698