diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/StyleSheetList.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/StyleSheetList.h')
-rw-r--r-- | Source/WebCore/css/StyleSheetList.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Source/WebCore/css/StyleSheetList.h b/Source/WebCore/css/StyleSheetList.h index dd273ac00..341adffcd 100644 --- a/Source/WebCore/css/StyleSheetList.h +++ b/Source/WebCore/css/StyleSheetList.h @@ -18,12 +18,10 @@ * Boston, MA 02110-1301, USA. */ -#ifndef StyleSheetList_h -#define StyleSheetList_h +#pragma once #include <wtf/Forward.h> #include <wtf/RefCounted.h> -#include <wtf/PassRefPtr.h> #include <wtf/Vector.h> namespace WebCore { @@ -31,16 +29,18 @@ namespace WebCore { class Document; class HTMLStyleElement; class StyleSheet; +class CSSStyleSheet; -class StyleSheetList : public RefCounted<StyleSheetList> { +class StyleSheetList final : public RefCounted<StyleSheetList> { public: - static PassRefPtr<StyleSheetList> create(Document* document) { return adoptRef(new StyleSheetList(document)); } - ~StyleSheetList(); + static Ref<StyleSheetList> create(Document* document) { return adoptRef(*new StyleSheetList(document)); } + WEBCORE_EXPORT ~StyleSheetList(); - unsigned length() const; - StyleSheet* item(unsigned index); + WEBCORE_EXPORT unsigned length() const; + WEBCORE_EXPORT StyleSheet* item(unsigned index); - HTMLStyleElement* getNamedItem(const String&) const; + CSSStyleSheet* namedItem(const AtomicString&) const; + Vector<AtomicString> supportedPropertyNames(); Document* document() { return m_document; } @@ -55,5 +55,3 @@ private: }; } // namespace WebCore - -#endif // StyleSheetList_h |