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/CSSShadowValue.h | 38 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 21 deletions(-) (limited to 'Source/WebCore/css/CSSShadowValue.h') diff --git a/Source/WebCore/css/CSSShadowValue.h b/Source/WebCore/css/CSSShadowValue.h index 6175df826..26857028c 100644 --- a/Source/WebCore/css/CSSShadowValue.h +++ b/Source/WebCore/css/CSSShadowValue.h @@ -18,11 +18,9 @@ * Boston, MA 02110-1301, USA. */ -#ifndef CSSShadowValue_h -#define CSSShadowValue_h +#pragma once #include "CSSValue.h" -#include #include namespace WebCore { @@ -30,16 +28,16 @@ namespace WebCore { class CSSPrimitiveValue; // Used for text-shadow and box-shadow -class CSSShadowValue : public CSSValue { +class CSSShadowValue final : public CSSValue { public: - static PassRef create(PassRefPtr x, - PassRefPtr y, - PassRefPtr blur, - PassRefPtr spread, - PassRefPtr style, - PassRefPtr color) + static Ref create(RefPtr&& x, + RefPtr&& y, + RefPtr&& blur, + RefPtr&& spread, + RefPtr&& style, + RefPtr&& color) { - return adoptRef(*new CSSShadowValue(x, y, blur, spread, style, color)); + return adoptRef(*new CSSShadowValue(WTFMove(x), WTFMove(y), WTFMove(blur), WTFMove(spread), WTFMove(style), WTFMove(color))); } String customCSSText() const; @@ -54,16 +52,14 @@ public: RefPtr color; private: - CSSShadowValue(PassRefPtr x, - PassRefPtr y, - PassRefPtr blur, - PassRefPtr spread, - PassRefPtr style, - PassRefPtr color); + CSSShadowValue(RefPtr&& x, + RefPtr&& y, + RefPtr&& blur, + RefPtr&& spread, + RefPtr&& style, + RefPtr&& color); }; -CSS_VALUE_TYPE_CASTS(CSSShadowValue, isShadowValue()) +} // namespace WebCore -} // namespace - -#endif +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSShadowValue, isShadowValue()) -- cgit v1.2.1