| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/inspector/InspectorTraceEvents.h" | 6 #include "core/inspector/InspectorTraceEvents.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptCallStackFactory.h" | 8 #include "bindings/core/v8/ScriptCallStackFactory.h" |
| 9 #include "bindings/core/v8/ScriptGCEvent.h" | 9 #include "bindings/core/v8/ScriptGCEvent.h" |
| 10 #include "bindings/core/v8/ScriptSourceCode.h" | 10 #include "bindings/core/v8/ScriptSourceCode.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 value->pushDouble(quad.p3().y()); | 79 value->pushDouble(quad.p3().y()); |
| 80 value->pushDouble(quad.p4().x()); | 80 value->pushDouble(quad.p4().x()); |
| 81 value->pushDouble(quad.p4().y()); | 81 value->pushDouble(quad.p4().y()); |
| 82 value->endArray(); | 82 value->endArray(); |
| 83 } | 83 } |
| 84 | 84 |
| 85 static void setGeneratingNodeId(TracedValue* value, const char* fieldName, const
RenderObject* renderer) | 85 static void setGeneratingNodeId(TracedValue* value, const char* fieldName, const
RenderObject* renderer) |
| 86 { | 86 { |
| 87 Node* node = 0; | 87 Node* node = 0; |
| 88 for (; renderer && !node; renderer = renderer->parent()) | 88 for (; renderer && !node; renderer = renderer->parent()) |
| 89 node = renderer->generatingNode(); | 89 node = renderer->node(); |
| 90 if (!node) | 90 if (!node) |
| 91 return; | 91 return; |
| 92 value->setInteger(fieldName, InspectorNodeIds::idForNode(node)); | 92 value->setInteger(fieldName, InspectorNodeIds::idForNode(node)); |
| 93 } | 93 } |
| 94 | 94 |
| 95 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayoutEvent::endData(R
enderObject* rootForThisLayout) | 95 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayoutEvent::endData(R
enderObject* rootForThisLayout) |
| 96 { | 96 { |
| 97 Vector<FloatQuad> quads; | 97 Vector<FloatQuad> quads; |
| 98 rootForThisLayout->absoluteQuads(quads); | 98 rootForThisLayout->absoluteQuads(quads); |
| 99 | 99 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E
xecutionContext* context, const String& message) | 305 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E
xecutionContext* context, const String& message) |
| 306 { | 306 { |
| 307 RefPtr<TracedValue> value = TracedValue::create(); | 307 RefPtr<TracedValue> value = TracedValue::create(); |
| 308 value->setString("message", message); | 308 value->setString("message", message); |
| 309 if (LocalFrame* frame = frameForExecutionContext(context)) | 309 if (LocalFrame* frame = frameForExecutionContext(context)) |
| 310 value->setString("frame", toHexString(frame)); | 310 value->setString("frame", toHexString(frame)); |
| 311 return value; | 311 return value; |
| 312 } | 312 } |
| 313 | 313 |
| 314 } | 314 } |
| OLD | NEW |