diff options
Diffstat (limited to 'Source/WebCore/css/CSSImportRule.h')
-rw-r--r-- | Source/WebCore/css/CSSImportRule.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/Source/WebCore/css/CSSImportRule.h b/Source/WebCore/css/CSSImportRule.h index 83122b34a..2b1f66d31 100644 --- a/Source/WebCore/css/CSSImportRule.h +++ b/Source/WebCore/css/CSSImportRule.h @@ -19,40 +19,37 @@ * Boston, MA 02110-1301, USA. */ -#ifndef CSSImportRule_h -#define CSSImportRule_h +#pragma once #include "CSSRule.h" namespace WebCore { -class CachedCSSStyleSheet; class MediaList; -class MediaQuerySet; class StyleRuleImport; -class CSSImportRule : public CSSRule { +class CSSImportRule final : public CSSRule { public: - static PassRefPtr<CSSImportRule> create(StyleRuleImport* rule, CSSStyleSheet* sheet) { return adoptRef(new CSSImportRule(rule, sheet)); } - - virtual ~CSSImportRule(); + static Ref<CSSImportRule> create(StyleRuleImport& rule, CSSStyleSheet* sheet) { return adoptRef(*new CSSImportRule(rule, sheet)); } - virtual CSSRule::Type type() const override { return IMPORT_RULE; } - virtual String cssText() const override; - virtual void reattach(StyleRuleBase*) override; + virtual ~CSSImportRule(); - String href() const; - MediaList* media() const; - CSSStyleSheet* styleSheet() const; + WEBCORE_EXPORT String href() const; + WEBCORE_EXPORT MediaList& media() const; + WEBCORE_EXPORT CSSStyleSheet* styleSheet() const; private: - CSSImportRule(StyleRuleImport*, CSSStyleSheet*); + CSSImportRule(StyleRuleImport&, CSSStyleSheet*); + + CSSRule::Type type() const final { return IMPORT_RULE; } + String cssText() const final; + void reattach(StyleRuleBase&) final; - RefPtr<StyleRuleImport> m_importRule; + Ref<StyleRuleImport> m_importRule; mutable RefPtr<MediaList> m_mediaCSSOMWrapper; mutable RefPtr<CSSStyleSheet> m_styleSheetCSSOMWrapper; }; } // namespace WebCore -#endif // CSSImportRule_h +SPECIALIZE_TYPE_TRAITS_CSS_RULE(CSSImportRule, CSSRule::IMPORT_RULE) |