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

Side by Side Diff: Source/core/css/CSSRule.h

Issue 1321943002: Support for CSSOM CSSNamespaceRule interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSNamespaceRule.idl ('k') | Source/core/css/CSSRule.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 STYLE_RULE = 1, 44 STYLE_RULE = 1,
45 CHARSET_RULE = 2, 45 CHARSET_RULE = 2,
46 IMPORT_RULE = 3, 46 IMPORT_RULE = 3,
47 MEDIA_RULE = 4, 47 MEDIA_RULE = 4,
48 FONT_FACE_RULE = 5, 48 FONT_FACE_RULE = 5,
49 PAGE_RULE = 6, 49 PAGE_RULE = 6,
50 KEYFRAMES_RULE = 7, 50 KEYFRAMES_RULE = 7,
51 WEBKIT_KEYFRAMES_RULE = KEYFRAMES_RULE, 51 WEBKIT_KEYFRAMES_RULE = KEYFRAMES_RULE,
52 KEYFRAME_RULE = 8, 52 KEYFRAME_RULE = 8,
53 WEBKIT_KEYFRAME_RULE = KEYFRAME_RULE, 53 WEBKIT_KEYFRAME_RULE = KEYFRAME_RULE,
54 NAMESPACE_RULE = 10,
54 SUPPORTS_RULE = 12, 55 SUPPORTS_RULE = 12,
55 VIEWPORT_RULE = 15, 56 VIEWPORT_RULE = 15,
56 }; 57 };
57 58
58 virtual Type type() const = 0; 59 virtual Type type() const = 0;
59 virtual String cssText() const = 0; 60 virtual String cssText() const = 0;
60 virtual void reattach(StyleRuleBase*) = 0; 61 virtual void reattach(StyleRuleBase*) = 0;
61 62
62 virtual CSSRuleList* cssRules() const { return 0; } 63 virtual CSSRuleList* cssRules() const { return 0; }
63 64
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 CSSStyleSheet* m_parentStyleSheet; 111 CSSStyleSheet* m_parentStyleSheet;
111 }; 112 };
112 }; 113 };
113 114
114 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ 115 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \
115 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) 116 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME)
116 117
117 } // namespace blink 118 } // namespace blink
118 119
119 #endif // CSSRule_h 120 #endif // CSSRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSNamespaceRule.idl ('k') | Source/core/css/CSSRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698