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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/LayoutAnalyzer.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp b/third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp
index 1f5b74118775e6befceac8dfbeeb6b39c7565133..754a31c34dabd18faa292eceea06f61034e1dc70 100644
--- a/third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp
@@ -9,6 +9,7 @@
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutText.h"
#include "platform/TracedValue.h"
+#include <memory>
namespace blink {
@@ -104,9 +105,9 @@ void LayoutAnalyzer::pop(const LayoutObject& o)
--m_depth;
}
-PassOwnPtr<TracedValue> LayoutAnalyzer::toTracedValue()
+std::unique_ptr<TracedValue> LayoutAnalyzer::toTracedValue()
{
- OwnPtr<TracedValue> tracedValue(TracedValue::create());
+ std::unique_ptr<TracedValue> tracedValue(TracedValue::create());
for (size_t i = 0; i < NumCounters; ++i) {
if (m_counters[i] > 0)
tracedValue->setInteger(nameForCounter(static_cast<Counter>(i)), m_counters[i]);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutAnalyzer.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698