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

Side by Side Diff: sky/engine/core/inspector/InspectorTraceEvents.cpp

Issue 735193002: Remove lots of things from RenderObject (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/editing/VisibleUnits.cpp ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sky/engine/core/editing/VisibleUnits.cpp ('k') | sky/engine/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698