From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/rendering/style/ShadowData.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/rendering/style/ShadowData.h') 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 -#include namespace WebCore { @@ -84,7 +81,7 @@ public: bool isWebkitBoxShadow() const { return m_isWebkitBoxShadow; } const ShadowData* next() const { return m_next.get(); } - void setNext(PassOwnPtr shadow) { m_next = shadow; } + void setNext(std::unique_ptr 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 m_next; + std::unique_ptr m_next; }; } // namespace WebCore - -#endif // ShadowData_h -- cgit v1.2.1