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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceRenderTiming.cpp

Issue 1780523005: Fix JSON serialization of PerformanceEntry subclasses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/timing/PerformanceRenderTiming.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceRenderTiming.cpp b/third_party/WebKit/Source/core/timing/PerformanceRenderTiming.cpp
index 6e1ae535f9a4ad6fbec53637f647f074c01e551d..997748b5151cca8ffaf07dcdfd02d632884d0baa 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceRenderTiming.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceRenderTiming.cpp
@@ -31,6 +31,7 @@
#include "core/timing/PerformanceRenderTiming.h"
+#include "bindings/core/v8/V8ObjectBuilder.h"
#include "core/dom/Document.h"
#include "core/loader/DocumentLoader.h"
@@ -58,6 +59,12 @@ unsigned PerformanceRenderTiming::sourceFrame() const
return m_sourceFrame;
}
+void PerformanceRenderTiming::buildJSONValue(V8ObjectBuilder& builder) const
+{
+ PerformanceEntry::buildJSONValue(builder);
+ builder.addNumber("sourceFrame", sourceFrame());
+}
+
DEFINE_TRACE(PerformanceRenderTiming)
{
visitor->trace(m_requestingDocument);

Powered by Google App Engine
This is Rietveld 408576698