Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
index 03c87db66d0ffa523f555f2536c7525d0da94594..f406ced3e1304ddc02adbb02d8250829c734aa54 100644
--- a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
@@ -7,13 +7,15 @@
#include "core/animation/PathInterpolationFunctions.h"
#include "core/css/CSSPathValue.h"
#include "core/css/resolver/StyleResolverState.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
void CSSPathInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue* nonInterpolableValue, InterpolationEnvironment& environment) const
{
ASSERT(cssProperty() == CSSPropertyD);
- OwnPtr<SVGPathByteStream> pathByteStream = PathInterpolationFunctions::appliedValue(interpolableValue, nonInterpolableValue);
+ std::unique_ptr<SVGPathByteStream> pathByteStream = PathInterpolationFunctions::appliedValue(interpolableValue, nonInterpolableValue);
if (pathByteStream->isEmpty()) {
environment.state().style()->setD(nullptr);
return;
@@ -38,9 +40,9 @@ InterpolationValue CSSPathInterpolationType::maybeConvertInitial(const StyleReso
class ParentPathChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<ParentPathChecker> create(PassRefPtr<StylePath> stylePath)
+ static std::unique_ptr<ParentPathChecker> create(PassRefPtr<StylePath> stylePath)
{
- return adoptPtr(new ParentPathChecker(stylePath));
+ return wrapUnique(new ParentPathChecker(stylePath));
}
private:

Powered by Google App Engine
This is Rietveld 408576698