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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.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/CSSFontSizeInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
index b409ffc155eb7814fdf3ecb31b853b5772a8af0b..54996390d12205474a717055e30bb1efb70d448d 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
@@ -9,6 +9,8 @@
#include "core/css/resolver/StyleResolverState.h"
#include "platform/LengthFunctions.h"
#include "platform/fonts/FontDescription.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -16,9 +18,9 @@ namespace {
class IsMonospaceChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<IsMonospaceChecker> create(bool isMonospace)
+ static std::unique_ptr<IsMonospaceChecker> create(bool isMonospace)
{
- return adoptPtr(new IsMonospaceChecker(isMonospace));
+ return wrapUnique(new IsMonospaceChecker(isMonospace));
}
private:
IsMonospaceChecker(bool isMonospace)
@@ -35,9 +37,9 @@ private:
class InheritedFontSizeChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<InheritedFontSizeChecker> create(const FontDescription::Size& inheritedFontSize)
+ static std::unique_ptr<InheritedFontSizeChecker> create(const FontDescription::Size& inheritedFontSize)
{
- return adoptPtr(new InheritedFontSizeChecker(inheritedFontSize));
+ return wrapUnique(new InheritedFontSizeChecker(inheritedFontSize));
}
private:
@@ -97,7 +99,7 @@ InterpolationValue CSSFontSizeInterpolationType::maybeConvertInherit(const Style
InterpolationValue CSSFontSizeInterpolationType::maybeConvertValue(const CSSValue& value, const StyleResolverState& state, ConversionCheckers& conversionCheckers) const
{
- OwnPtr<InterpolableValue> result = CSSLengthInterpolationType::maybeConvertCSSValue(value).interpolableValue;
+ std::unique_ptr<InterpolableValue> result = CSSLengthInterpolationType::maybeConvertCSSValue(value).interpolableValue;
if (result)
return InterpolationValue(std::move(result));

Powered by Google App Engine
This is Rietveld 408576698