diff options
Diffstat (limited to 'Source/WebCore/rendering/style/StyleReflection.h')
-rw-r--r-- | Source/WebCore/rendering/style/StyleReflection.h | 11 |
1 files changed, 4 insertions, 7 deletions
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<StyleReflection> { public: - static PassRefPtr<StyleReflection> create() + static Ref<StyleReflection> 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 |