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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 f406ced3e1304ddc02adbb02d8250829c734aa54..03c87db66d0ffa523f555f2536c7525d0da94594 100644
--- a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp
@@ -7,15 +7,13 @@
#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);
- std::unique_ptr<SVGPathByteStream> pathByteStream = PathInterpolationFunctions::appliedValue(interpolableValue, nonInterpolableValue);
+ OwnPtr<SVGPathByteStream> pathByteStream = PathInterpolationFunctions::appliedValue(interpolableValue, nonInterpolableValue);
if (pathByteStream->isEmpty()) {
environment.state().style()->setD(nullptr);
return;
@@ -40,9 +38,9 @@ InterpolationValue CSSPathInterpolationType::maybeConvertInitial(const StyleReso
class ParentPathChecker : public InterpolationType::ConversionChecker {
public:
- static std::unique_ptr<ParentPathChecker> create(PassRefPtr<StylePath> stylePath)
+ static PassOwnPtr<ParentPathChecker> create(PassRefPtr<StylePath> stylePath)
{
- return wrapUnique(new ParentPathChecker(stylePath));
+ return adoptPtr(new ParentPathChecker(stylePath));
}
private:

Powered by Google App Engine
This is Rietveld 408576698