summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/style/ShadowData.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/ShadowData.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/rendering/style/ShadowData.h')
-rw-r--r--Source/WebCore/rendering/style/ShadowData.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebCore/rendering/style/ShadowData.h b/Source/WebCore/rendering/style/ShadowData.h
index 19be48d6c..f063043bc 100644
--- a/Source/WebCore/rendering/style/ShadowData.h
+++ b/Source/WebCore/rendering/style/ShadowData.h
@@ -22,14 +22,11 @@
*
*/
-#ifndef ShadowData_h
-#define ShadowData_h
+#pragma once
#include "Color.h"
#include "FloatRect.h"
#include "LayoutRect.h"
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -84,7 +81,7 @@ public:
bool isWebkitBoxShadow() const { return m_isWebkitBoxShadow; }
const ShadowData* next() const { return m_next.get(); }
- void setNext(PassOwnPtr<ShadowData> shadow) { m_next = shadow; }
+ void setNext(std::unique_ptr<ShadowData> shadow) { m_next = WTFMove(shadow); }
void adjustRectForShadow(LayoutRect&, int additionalOutlineSize = 0) const;
void adjustRectForShadow(FloatRect&, int additionalOutlineSize = 0) const;
@@ -96,9 +93,7 @@ private:
Color m_color;
ShadowStyle m_style;
bool m_isWebkitBoxShadow;
- OwnPtr<ShadowData> m_next;
+ std::unique_ptr<ShadowData> m_next;
};
} // namespace WebCore
-
-#endif // ShadowData_h