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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.h

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/css/cssom/CSSMatrixTransformComponent.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.h b/third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.h
index d0c5e80414f51dc88407fc63c01667f6178491c9..fcc05abc23ac397f0a7802bc9d3635b33cc65d8b 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSMatrixTransformComponent.h
@@ -7,7 +7,6 @@
#include "core/css/cssom/TransformComponent.h"
#include "platform/transforms/TransformationMatrix.h"
-#include <memory>
namespace blink {
@@ -92,17 +91,17 @@ private:
, m_is2D(false)
{ }
- CSSMatrixTransformComponent(std::unique_ptr<const TransformationMatrix> matrix, TransformComponentType fromType)
+ CSSMatrixTransformComponent(PassOwnPtr<const TransformationMatrix> matrix, TransformComponentType fromType)
: TransformComponent()
, m_matrix(std::move(matrix))
, m_is2D(is2DComponentType(fromType))
{ }
// TransformationMatrix needs to be 16-byte aligned. PartitionAlloc
- // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr
+ // supports 16-byte alignment but Oilpan doesn't. So we use an OwnPtr
// to allocate TransformationMatrix on PartitionAlloc.
// TODO(oilpan): Oilpan should support 16-byte aligned allocations.
- std::unique_ptr<const TransformationMatrix> m_matrix;
+ OwnPtr<const TransformationMatrix> m_matrix;
bool m_is2D;
};

Powered by Google App Engine
This is Rietveld 408576698