summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSShadowValue.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSShadowValue.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/css/CSSShadowValue.h')
-rw-r--r--Source/WebCore/css/CSSShadowValue.h38
1 files changed, 17 insertions, 21 deletions
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 <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
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<CSSShadowValue> create(PassRefPtr<CSSPrimitiveValue> x,
- PassRefPtr<CSSPrimitiveValue> y,
- PassRefPtr<CSSPrimitiveValue> blur,
- PassRefPtr<CSSPrimitiveValue> spread,
- PassRefPtr<CSSPrimitiveValue> style,
- PassRefPtr<CSSPrimitiveValue> color)
+ static Ref<CSSShadowValue> create(RefPtr<CSSPrimitiveValue>&& x,
+ RefPtr<CSSPrimitiveValue>&& y,
+ RefPtr<CSSPrimitiveValue>&& blur,
+ RefPtr<CSSPrimitiveValue>&& spread,
+ RefPtr<CSSPrimitiveValue>&& style,
+ RefPtr<CSSPrimitiveValue>&& 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<CSSPrimitiveValue> color;
private:
- CSSShadowValue(PassRefPtr<CSSPrimitiveValue> x,
- PassRefPtr<CSSPrimitiveValue> y,
- PassRefPtr<CSSPrimitiveValue> blur,
- PassRefPtr<CSSPrimitiveValue> spread,
- PassRefPtr<CSSPrimitiveValue> style,
- PassRefPtr<CSSPrimitiveValue> color);
+ CSSShadowValue(RefPtr<CSSPrimitiveValue>&& x,
+ RefPtr<CSSPrimitiveValue>&& y,
+ RefPtr<CSSPrimitiveValue>&& blur,
+ RefPtr<CSSPrimitiveValue>&& spread,
+ RefPtr<CSSPrimitiveValue>&& style,
+ RefPtr<CSSPrimitiveValue>&& color);
};
-CSS_VALUE_TYPE_CASTS(CSSShadowValue, isShadowValue())
+} // namespace WebCore
-} // namespace
-
-#endif
+SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSShadowValue, isShadowValue())