summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/style/CursorData.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/CursorData.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/rendering/style/CursorData.h')
-rw-r--r--Source/WebCore/rendering/style/CursorData.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WebCore/rendering/style/CursorData.h b/Source/WebCore/rendering/style/CursorData.h
index f8f779a28..56fccd0e9 100644
--- a/Source/WebCore/rendering/style/CursorData.h
+++ b/Source/WebCore/rendering/style/CursorData.h
@@ -22,8 +22,7 @@
*
*/
-#ifndef CursorData_h
-#define CursorData_h
+#pragma once
#include "IntPoint.h"
#include "StyleImage.h"
@@ -32,8 +31,8 @@ namespace WebCore {
class CursorData {
public:
- CursorData(PassRefPtr<StyleImage> image, const IntPoint& hotSpot)
- : m_image(image)
+ CursorData(RefPtr<StyleImage>&& image, const IntPoint& hotSpot)
+ : m_image(WTFMove(image))
, m_hotSpot(hotSpot)
{
}
@@ -49,7 +48,7 @@ public:
}
StyleImage* image() const { return m_image.get(); }
- void setImage(PassRefPtr<StyleImage> image) { m_image = image; }
+ void setImage(RefPtr<StyleImage>&& image) { m_image = WTFMove(image); }
// Hot spot in the image in logical pixels.
const IntPoint& hotSpot() const { return m_hotSpot; }
@@ -60,5 +59,3 @@ private:
};
} // namespace WebCore
-
-#endif // CursorData_h