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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSNamespaceRule.h

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #ifndef CSSNamespaceRule_h 6 #ifndef CSSNamespaceRule_h
7 #define CSSNamespaceRule_h 7 #define CSSNamespaceRule_h
8 8
9 #include "core/css/CSSRule.h" 9 #include "core/css/CSSRule.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class StyleRuleNamespace; 13 class StyleRuleNamespace;
14 14
15 class CSSNamespaceRule final : public CSSRule { 15 class CSSNamespaceRule final : public CSSRule {
16 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
17 public: 17 public:
18 static RawPtr<CSSNamespaceRule> create(StyleRuleNamespace* rule, CSSStyleShe et* sheet) 18 static CSSNamespaceRule* create(StyleRuleNamespace* rule, CSSStyleSheet* she et)
19 { 19 {
20 return new CSSNamespaceRule(rule, sheet); 20 return new CSSNamespaceRule(rule, sheet);
21 } 21 }
22 22
23 ~CSSNamespaceRule() override; 23 ~CSSNamespaceRule() override;
24 24
25 String cssText() const override; 25 String cssText() const override;
26 void reattach(StyleRuleBase*) override { } 26 void reattach(StyleRuleBase*) override { }
27 27
28 AtomicString namespaceURI() const; 28 AtomicString namespaceURI() const;
29 AtomicString prefix() const; 29 AtomicString prefix() const;
30 30
31 DECLARE_VIRTUAL_TRACE(); 31 DECLARE_VIRTUAL_TRACE();
32 32
33 private: 33 private:
34 CSSNamespaceRule(StyleRuleNamespace*, CSSStyleSheet*); 34 CSSNamespaceRule(StyleRuleNamespace*, CSSStyleSheet*);
35 35
36 CSSRule::Type type() const override { return NAMESPACE_RULE; } 36 CSSRule::Type type() const override { return NAMESPACE_RULE; }
37 37
38 Member<StyleRuleNamespace> m_namespaceRule; 38 Member<StyleRuleNamespace> m_namespaceRule;
39 }; 39 };
40 40
41 DEFINE_CSS_RULE_TYPE_CASTS(CSSNamespaceRule, NAMESPACE_RULE); 41 DEFINE_CSS_RULE_TYPE_CASTS(CSSNamespaceRule, NAMESPACE_RULE);
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // CSSNamespaceRule_h 45 #endif // CSSNamespaceRule_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMediaRule.h ('k') | third_party/WebKit/Source/core/css/CSSPageRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698