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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRuleNamespace.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 #ifndef StyleRuleNamespace_h 5 #ifndef StyleRuleNamespace_h
6 #define StyleRuleNamespace_h 6 #define StyleRuleNamespace_h
7 7
8 #include "core/css/StyleRule.h" 8 #include "core/css/StyleRule.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // This class is never actually stored anywhere currently, but only used for 12 // This class is never actually stored anywhere currently, but only used for
13 // the parser to pass to a stylesheet 13 // the parser to pass to a stylesheet
14 class StyleRuleNamespace final : public StyleRuleBase { 14 class StyleRuleNamespace final : public StyleRuleBase {
15 public: 15 public:
16 static RawPtr<StyleRuleNamespace> create(AtomicString prefix, AtomicString u ri) 16 static StyleRuleNamespace* create(AtomicString prefix, AtomicString uri)
17 { 17 {
18 return new StyleRuleNamespace(prefix, uri); 18 return new StyleRuleNamespace(prefix, uri);
19 } 19 }
20 20
21 AtomicString prefix() const { return m_prefix; } 21 AtomicString prefix() const { return m_prefix; }
22 AtomicString uri() const { return m_uri; } 22 AtomicString uri() const { return m_uri; }
23 23
24 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { StyleRuleBase::traceAfterDispatch(vis itor); } 24 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { StyleRuleBase::traceAfterDispatch(vis itor); }
25 25
26 private: 26 private:
27 StyleRuleNamespace(AtomicString prefix, AtomicString uri) 27 StyleRuleNamespace(AtomicString prefix, AtomicString uri)
28 : StyleRuleBase(Namespace) 28 : StyleRuleBase(Namespace)
29 , m_prefix(prefix) 29 , m_prefix(prefix)
30 , m_uri(uri) 30 , m_uri(uri)
31 { } 31 { }
32 32
33 AtomicString m_prefix; 33 AtomicString m_prefix;
34 AtomicString m_uri; 34 AtomicString m_uri;
35 }; 35 };
36 36
37 DEFINE_STYLE_RULE_TYPE_CASTS(Namespace); 37 DEFINE_STYLE_RULE_TYPE_CASTS(Namespace);
38 38
39 } // namespace blink 39 } // namespace blink
40 40
41 #endif // StyleRuleNamespace_h 41 #endif // StyleRuleNamespace_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698