summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSImportRule.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSImportRule.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/css/CSSImportRule.h')
-rw-r--r--Source/WebCore/css/CSSImportRule.h31
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)