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/CSSInheritedValue.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'Source/WebCore/css/CSSInheritedValue.h') 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 +#include namespace WebCore { -class CSSInheritedValue : public CSSValue { +class CSSInheritedValue final : public CSSValue { public: - static PassRef 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; +#endif CSSInheritedValue() : CSSValue(InheritedClass) { } }; -CSS_VALUE_TYPE_CASTS(CSSInheritedValue, isInheritedValue()) - } // namespace WebCore -#endif // CSSInheritedValue_h +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSInheritedValue, isInheritedValue()) -- cgit v1.2.1