summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/style/StyleReflection.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/rendering/style/StyleReflection.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/rendering/style/StyleReflection.h')
-rw-r--r--Source/WebCore/rendering/style/StyleReflection.h11
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