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/rendering/style/StyleReflection.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Source/WebCore/rendering/style/StyleReflection.h') diff --git a/Source/WebCore/rendering/style/StyleReflection.h b/Source/WebCore/rendering/style/StyleReflection.h index 45b93e204..c82f84e61 100644 --- a/Source/WebCore/rendering/style/StyleReflection.h +++ b/Source/WebCore/rendering/style/StyleReflection.h @@ -22,8 +22,7 @@ * */ -#ifndef StyleReflection_h -#define StyleReflection_h +#pragma once #include "CSSReflectionDirection.h" #include "Length.h" @@ -34,9 +33,9 @@ namespace WebCore { class StyleReflection : public RefCounted { public: - static PassRefPtr create() + static Ref create() { - return adoptRef(new StyleReflection); + return adoptRef(*new StyleReflection); } bool operator==(const StyleReflection& o) const @@ -50,7 +49,7 @@ public: const NinePieceImage& mask() const { return m_mask; } void setDirection(CSSReflectionDirection dir) { m_direction = dir; } - void setOffset(Length offset) { m_offset = std::move(offset); } + void setOffset(Length offset) { m_offset = WTFMove(offset); } void setMask(const NinePieceImage& image) { m_mask = image; } private: @@ -67,5 +66,3 @@ private: }; } // namespace WebCore - -#endif // StyleReflection_h -- cgit v1.2.1