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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.h

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/CSSLengthInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.h
index 84f9b94aee3b0957dd1988addaff66f3ff1be29d..2537a204f4bc38e79d8ff24e243c4d9ae7c91791 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.h
@@ -7,6 +7,7 @@
#include "core/animation/CSSInterpolationType.h"
#include "core/animation/LengthPropertyFunctions.h"
+#include <memory>
namespace blink {
@@ -22,14 +23,14 @@ public:
void apply(const InterpolableValue&, const NonInterpolableValue*, InterpolationEnvironment&) const final;
static Length resolveInterpolableLength(const InterpolableValue&, const NonInterpolableValue*, const CSSToLengthConversionData&, ValueRange = ValueRangeAll);
- static PassOwnPtr<InterpolableValue> createInterpolablePixels(double pixels);
+ static std::unique_ptr<InterpolableValue> createInterpolablePixels(double pixels);
static InterpolationValue createInterpolablePercent(double percent);
static InterpolationValue maybeConvertCSSValue(const CSSValue&);
static InterpolationValue maybeConvertLength(const Length&, float zoom);
- static PassOwnPtr<InterpolableList> createNeutralInterpolableValue();
+ static std::unique_ptr<InterpolableList> createNeutralInterpolableValue();
static PairwiseInterpolationValue staticMergeSingleConversions(InterpolationValue&& start, InterpolationValue&& end);
static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*, const NonInterpolableValue*);
- static void composite(OwnPtr<InterpolableValue>&, RefPtr<NonInterpolableValue>&, double underlyingFraction, const InterpolableValue&, const NonInterpolableValue*);
+ static void composite(std::unique_ptr<InterpolableValue>&, RefPtr<NonInterpolableValue>&, double underlyingFraction, const InterpolableValue&, const NonInterpolableValue*);
static void subtractFromOneHundredPercent(InterpolationValue& result);
private:

Powered by Google App Engine
This is Rietveld 408576698