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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.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/layout/TextAutosizer.h
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.h b/third_party/WebKit/Source/core/layout/TextAutosizer.h
index c680135a98ef80cbe7439e40157a15c9e255a616..4f3a2a645fc51d12469aff3797c6a1dd6b754694 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.h
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.h
@@ -36,7 +36,8 @@
#include "wtf/HashMap.h"
#include "wtf/HashSet.h"
#include "wtf/Noncopyable.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
+
#include <unicode/uchar.h>
namespace blink {
@@ -206,8 +207,8 @@ private:
"sizeof(FingerprintSourceData) must be a multiple of UChar");
typedef unsigned Fingerprint;
- typedef HashMap<Fingerprint, std::unique_ptr<Supercluster>> SuperclusterMap;
- typedef Vector<std::unique_ptr<Cluster>> ClusterStack;
+ typedef HashMap<Fingerprint, OwnPtr<Supercluster>> SuperclusterMap;
+ typedef Vector<OwnPtr<Cluster>> ClusterStack;
// Fingerprints are computed during style recalc, for (some subset of)
// blocks that will become cluster roots.
@@ -223,7 +224,7 @@ private:
bool hasFingerprints() const { return !m_fingerprints.isEmpty(); }
private:
typedef HashMap<const LayoutObject*, Fingerprint> FingerprintMap;
- typedef HashMap<Fingerprint, std::unique_ptr<BlockSet>> ReverseFingerprintMap;
+ typedef HashMap<Fingerprint, OwnPtr<BlockSet>> ReverseFingerprintMap;
FingerprintMap m_fingerprints;
ReverseFingerprintMap m_blocksForFingerprint;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698