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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.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/CSSFontWeightInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
index cbc644cfdee32a8f7086790c90e2d10262c1bf46..9fa8de371a34e8a0b8305f7cdc0d63ffaad05a2e 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp
@@ -6,6 +6,8 @@
#include "core/css/CSSPrimitiveValueMappings.h"
#include "core/css/resolver/StyleResolverState.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -57,9 +59,9 @@ static FontWeight doubleToFontWeight(double value)
class ParentFontWeightChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<ParentFontWeightChecker> create(FontWeight fontWeight)
+ static std::unique_ptr<ParentFontWeightChecker> create(FontWeight fontWeight)
{
- return adoptPtr(new ParentFontWeightChecker(fontWeight));
+ return wrapUnique(new ParentFontWeightChecker(fontWeight));
}
private:

Powered by Google App Engine
This is Rietveld 408576698