blob: 892871d15f6ddf183e5566c5800dd76804e636d8 [file] [log] [blame]
// 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 {
static CSSNamespaceRule* Create(StyleRuleNamespace* rule,
CSSStyleSheet* sheet) {
return new CSSNamespaceRule(rule, sheet);
~CSSNamespaceRule() override;
String cssText() const override;
void Reattach(StyleRuleBase*) override {}
AtomicString namespaceURI() const;
AtomicString prefix() const;
virtual void Trace(blink::Visitor*);
CSSNamespaceRule(StyleRuleNamespace*, CSSStyleSheet*);
CSSRule::Type type() const override { return kNamespaceRule; }
Member<StyleRuleNamespace> namespace_rule_;
DEFINE_CSS_RULE_TYPE_CASTS(CSSNamespaceRule, kNamespaceRule);
} // namespace blink
#endif // CSSNamespaceRule_h