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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSNamespaceRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSNamespaceRule.h
diff --git a/Source/core/css/CSSNamespaceRule.h b/Source/core/css/CSSNamespaceRule.h
new file mode 100644
index 0000000000000000000000000000000000000000..547eadf51fa3d6a81abd13746b709528f1ce20f8
--- /dev/null
+++ b/Source/core/css/CSSNamespaceRule.h
@@ -0,0 +1,45 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+
+#ifndef CSSNamespaceRule_h
+#define CSSNamespaceRule_h
+
+#include "core/css/CSSRule.h"
+
+namespace blink {
+
+class StyleRuleNamespace;
+
+class CSSNamespaceRule final : public CSSRule {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static PassRefPtrWillBeRawPtr<CSSNamespaceRule> create(StyleRuleNamespace* rule, CSSStyleSheet* sheet)
+ {
+ return adoptRefWillBeNoop(new CSSNamespaceRule(rule, sheet));
+ }
+
+ ~CSSNamespaceRule() override;
+
+ String cssText() const override;
+ void reattach(StyleRuleBase*) override { }
+
+ AtomicString namespaceURI() const;
+ AtomicString prefix() const;
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ CSSNamespaceRule(StyleRuleNamespace*, CSSStyleSheet*);
+
+ CSSRule::Type type() const override { return NAMESPACE_RULE; }
+
+ RefPtrWillBeMember<StyleRuleNamespace> m_namespaceRule;
+};
+
+DEFINE_CSS_RULE_TYPE_CASTS(CSSNamespaceRule, NAMESPACE_RULE);
+
+} // namespace blink
+
+#endif // CSSNamespaceRule_h
« 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