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/CSSInheritedValue.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/CSSInheritedValue.h')
-rw-r--r-- | Source/WebCore/css/CSSInheritedValue.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Source/WebCore/css/CSSInheritedValue.h b/Source/WebCore/css/CSSInheritedValue.h index f6d168eea..8f9253de7 100644 --- a/Source/WebCore/css/CSSInheritedValue.h +++ b/Source/WebCore/css/CSSInheritedValue.h @@ -18,34 +18,32 @@ * Boston, MA 02110-1301, USA. */ -#ifndef CSSInheritedValue_h -#define CSSInheritedValue_h +#pragma once #include "CSSValue.h" -#include <wtf/PassRefPtr.h> +#include <wtf/NeverDestroyed.h> namespace WebCore { -class CSSInheritedValue : public CSSValue { +class CSSInheritedValue final : public CSSValue { public: - static PassRef<CSSInheritedValue> create() - { - return adoptRef(*new CSSInheritedValue); - } - String customCSSText() const; bool equals(const CSSInheritedValue&) const { return true; } +#if COMPILER(MSVC) + // FIXME: This should be private, but for some reason MSVC then fails to invoke it from LazyNeverDestroyed::construct. +public: +#else private: + friend class LazyNeverDestroyed<CSSInheritedValue>; +#endif CSSInheritedValue() : CSSValue(InheritedClass) { } }; -CSS_VALUE_TYPE_CASTS(CSSInheritedValue, isInheritedValue()) - } // namespace WebCore -#endif // CSSInheritedValue_h +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSInheritedValue, isInheritedValue()) |