diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
| commit | a4e969f4965059196ca948db781e52f7cfebf19e (patch) | |
| tree | 6ca352808c8fdc52006a0f33f6ae3c593b23867d /Source/WebCore/css/CSSInheritedValue.h | |
| parent | 41386e9cb918eed93b3f13648cbef387e371e451 (diff) | |
| download | WebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz | |
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Source/WebCore/css/CSSInheritedValue.h')
| -rw-r--r-- | Source/WebCore/css/CSSInheritedValue.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/WebCore/css/CSSInheritedValue.h b/Source/WebCore/css/CSSInheritedValue.h index f6d168eea..065222265 100644 --- a/Source/WebCore/css/CSSInheritedValue.h +++ b/Source/WebCore/css/CSSInheritedValue.h @@ -22,30 +22,31 @@ #define CSSInheritedValue_h #include "CSSValue.h" -#include <wtf/PassRefPtr.h> +#include <wtf/NeverDestroyed.h> namespace WebCore { class CSSInheritedValue : 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 +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSInheritedValue, isInheritedValue()) + #endif // CSSInheritedValue_h |
