| Index: third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
|
| diff --git a/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp b/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
|
| index 52a6387df9dfdee5d6b74d78f562ac80573762a1..0812ee53e77f501ca58c8fcd632e8e8cb9da36aa 100644
|
| --- a/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
|
| +++ b/third_party/WebKit/Source/core/timing/PerformanceEntry.cpp
|
| @@ -86,11 +86,16 @@ PerformanceEntry::EntryType PerformanceEntry::toEntryTypeEnum(const String& entr
|
| ScriptValue PerformanceEntry::toJSONForBinding(ScriptState* scriptState) const
|
| {
|
| V8ObjectBuilder result(scriptState);
|
| - result.addString("name", name());
|
| - result.addString("entryType", entryType());
|
| - result.addNumber("startTime", startTime());
|
| - result.addNumber("duration", duration());
|
| + buildJSONValue(result);
|
| return result.scriptValue();
|
| }
|
|
|
| +void PerformanceEntry::buildJSONValue(V8ObjectBuilder& builder) const
|
| +{
|
| + builder.addString("name", name());
|
| + builder.addString("entryType", entryType());
|
| + builder.addNumber("startTime", startTime());
|
| + builder.addNumber("duration", duration());
|
| +}
|
| +
|
| } // namespace blink
|
|
|