diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/rendering/style/StyleReflection.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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 |