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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.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/paint/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index 3c9c9a3194da0f30c38ec4a4772fc0a62c6fc744..be3393ed2a1dc91437f9d09f34e33aa21ec5f100 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -13,6 +13,8 @@
#include "core/paint/ObjectPaintProperties.h"
#include "core/paint/PaintLayer.h"
#include "platform/transforms/TransformationMatrix.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -164,8 +166,8 @@ void PaintPropertyTreeBuilder::updateLocalBorderBoxContext(const LayoutObject& o
if (!object.hasLayer())
return;
- OwnPtr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext =
- adoptPtr(new ObjectPaintProperties::LocalBorderBoxProperties);
+ std::unique_ptr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext =
+ wrapUnique(new ObjectPaintProperties::LocalBorderBoxProperties);
borderBoxContext->paintOffset = context.paintOffset;
borderBoxContext->transform = context.currentTransform;
borderBoxContext->clip = context.currentClip;

Powered by Google App Engine
This is Rietveld 408576698