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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.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/layout/svg/LayoutSVGResourceGradient.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
index 0c957d3fc891be8cc3d587d7ef5f1389c7e59458..2f56243e5b2d2e4451c2164c49a0ad9388cfdd61 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
@@ -22,9 +22,6 @@
#include "core/layout/svg/LayoutSVGResourceGradient.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
-
namespace blink {
LayoutSVGResourceGradient::LayoutSVGResourceGradient(SVGGradientElement* node)
@@ -73,9 +70,9 @@ SVGPaintServer LayoutSVGResourceGradient::preparePaintServer(const LayoutObject&
if (gradientUnits() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX && objectBoundingBox.isEmpty())
return SVGPaintServer::invalid();
- std::unique_ptr<GradientData>& gradientData = m_gradientMap.add(&object, nullptr).storedValue->value;
+ OwnPtr<GradientData>& gradientData = m_gradientMap.add(&object, nullptr).storedValue->value;
if (!gradientData)
- gradientData = wrapUnique(new GradientData);
+ gradientData = adoptPtr(new GradientData);
// Create gradient object
if (!gradientData->gradient) {

Powered by Google App Engine
This is Rietveld 408576698