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

Side by Side Diff: Source/core/css/CSSNamespaceRule.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/CSSGroupingRule.cpp ('k') | Source/core/css/CSSNamespaceRule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/core/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSNamespaceRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698