diff options
Diffstat (limited to 'Source/WebCore/css/CSSFontValue.h')
-rw-r--r-- | Source/WebCore/css/CSSFontValue.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/css/CSSFontValue.h b/Source/WebCore/css/CSSFontValue.h index 81ac41a7a..79d548d24 100644 --- a/Source/WebCore/css/CSSFontValue.h +++ b/Source/WebCore/css/CSSFontValue.h @@ -18,11 +18,9 @@ * Boston, MA 02110-1301, USA. */ -#ifndef CSSFontValue_h -#define CSSFontValue_h +#pragma once #include "CSSValue.h" -#include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> namespace WebCore { @@ -30,9 +28,9 @@ namespace WebCore { class CSSPrimitiveValue; class CSSValueList; -class CSSFontValue : public CSSValue { +class CSSFontValue final : public CSSValue { public: - static PassRef<CSSFontValue> create() + static Ref<CSSFontValue> create() { return adoptRef(*new CSSFontValue); } @@ -55,8 +53,6 @@ private: } }; -CSS_VALUE_TYPE_CASTS(CSSFontValue, isFontValue()) +} // namespace WebCore -} // namespace - -#endif +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSFontValue, isFontValue()) |