summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/style/ShadowData.h
diff options
context:
space:
mode:
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