From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/css/CSSImportRule.h | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'Source/WebCore/css/CSSImportRule.h') 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 create(StyleRuleImport* rule, CSSStyleSheet* sheet) { return adoptRef(new CSSImportRule(rule, sheet)); } - - virtual ~CSSImportRule(); + static Ref 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 m_importRule; + Ref m_importRule; mutable RefPtr m_mediaCSSOMWrapper; mutable RefPtr m_styleSheetCSSOMWrapper; }; } // namespace WebCore -#endif // CSSImportRule_h +SPECIALIZE_TYPE_TRAITS_CSS_RULE(CSSImportRule, CSSRule::IMPORT_RULE) -- cgit v1.2.1