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

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

Issue 1381023002: NOCOMMIT: Blink tracing now uses base Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 b1b510de7454f14564588947fc85825b2d74e097..b64aa6e89eb6f0347cfa8145f34efd089ba3a311 100644
--- a/third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp
@@ -105,14 +105,14 @@ void LayoutAnalyzer::pop(const LayoutObject& o)
--m_depth;
}
-PassRefPtr<TracedValue> LayoutAnalyzer::toTracedValue()
+scoped_refptr<TracedValue> LayoutAnalyzer::toTracedValue()
{
- RefPtr<TracedValue> tracedValue(TracedValue::create());
+ scoped_refptr<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]);
}
- return tracedValue.release();
+ return tracedValue;
}
const char* LayoutAnalyzer::nameForCounter(Counter counter) const
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutAnalyzer.h ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698