OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 |
| 6 #ifndef CSSNamespaceRule_h |
| 7 #define CSSNamespaceRule_h |
| 8 |
| 9 #include "core/css/CSSRule.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class StyleRuleNamespace; |
| 14 |
| 15 class CSSNamespaceRule final : public CSSRule { |
| 16 DEFINE_WRAPPERTYPEINFO(); |
| 17 public: |
| 18 static PassRefPtrWillBeRawPtr<CSSNamespaceRule> create(StyleRuleNamespace* r
ule, CSSStyleSheet* sheet) |
| 19 { |
| 20 return adoptRefWillBeNoop(new CSSNamespaceRule(rule, sheet)); |
| 21 } |
| 22 |
| 23 ~CSSNamespaceRule() override; |
| 24 |
| 25 String cssText() const override; |
| 26 void reattach(StyleRuleBase*) override { } |
| 27 |
| 28 AtomicString namespaceURI() const; |
| 29 AtomicString prefix() const; |
| 30 |
| 31 DECLARE_VIRTUAL_TRACE(); |
| 32 |
| 33 private: |
| 34 CSSNamespaceRule(StyleRuleNamespace*, CSSStyleSheet*); |
| 35 |
| 36 CSSRule::Type type() const override { return NAMESPACE_RULE; } |
| 37 |
| 38 RefPtrWillBeMember<StyleRuleNamespace> m_namespaceRule; |
| 39 }; |
| 40 |
| 41 DEFINE_CSS_RULE_TYPE_CASTS(CSSNamespaceRule, NAMESPACE_RULE); |
| 42 |
| 43 } // namespace blink |
| 44 |
| 45 #endif // CSSNamespaceRule_h |
OLD | NEW |