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

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: Merge. 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 14aa29a03b460b5fe4b0900391879a882f030e7a..711c6835794d44248ee73b47e5a67e77f1e62cae 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -12,6 +12,8 @@
#include "core/paint/ObjectPaintProperties.h"
#include "core/paint/PaintLayer.h"
#include "platform/transforms/TransformationMatrix.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -146,8 +148,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