diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/css/CSSRule.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/css/CSSRule.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/third_party/WebKit/Source/core/css/CSSRule.h b/chromium/third_party/WebKit/Source/core/css/CSSRule.h index 705f7cf5f91..9cd66086e23 100644 --- a/chromium/third_party/WebKit/Source/core/css/CSSRule.h +++ b/chromium/third_party/WebKit/Source/core/css/CSSRule.h @@ -28,9 +28,9 @@ namespace WebCore { +class CSSParserContext; class CSSStyleSheet; class StyleRuleBase; -struct CSSParserContext; class CSSRule : public RefCounted<CSSRule> { public: @@ -54,8 +54,7 @@ public: SUPPORTS_RULE = 12, VIEWPORT_RULE = 15, WEBKIT_REGION_RULE = 16, - WEBKIT_FILTER_RULE = 17, - HOST_RULE = 1001, + WEBKIT_FILTER_RULE = 17 }; virtual Type type() const = 0; @@ -84,7 +83,7 @@ public: CSSRule* parentRule() const { return m_parentIsRule ? m_parentRule : 0; } // NOTE: Just calls notImplemented(). - void setCssText(const String&); + void setCSSText(const String&); protected: CSSRule(CSSStyleSheet* parent) @@ -109,6 +108,9 @@ private: }; }; +#define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ + DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) + } // namespace WebCore #endif // CSSRule_h |