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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 be3393ed2a1dc91437f9d09f34e33aa21ec5f100..3c9c9a3194da0f30c38ec4a4772fc0a62c6fc744 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -13,8 +13,6 @@
#include "core/paint/ObjectPaintProperties.h"
#include "core/paint/PaintLayer.h"
#include "platform/transforms/TransformationMatrix.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -166,8 +164,8 @@ void PaintPropertyTreeBuilder::updateLocalBorderBoxContext(const LayoutObject& o
if (!object.hasLayer())
return;
- std::unique_ptr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext =
- wrapUnique(new ObjectPaintProperties::LocalBorderBoxProperties);
+ OwnPtr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext =
+ adoptPtr(new ObjectPaintProperties::LocalBorderBoxProperties);
borderBoxContext->paintOffset = context.paintOffset;
borderBoxContext->transform = context.currentTransform;
borderBoxContext->clip = context.currentClip;

Powered by Google App Engine
This is Rietveld 408576698