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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 stackTrace->toTracedValue(value.get(), "stackTrace"); | 263 stackTrace->toTracedValue(value.get(), "stackTrace"); |
264 return value.release(); | 264 return value.release(); |
265 } | 265 } |
266 | 266 |
267 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayoutEvent::beginData
(FrameView* frameView) | 267 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayoutEvent::beginData
(FrameView* frameView) |
268 { | 268 { |
269 bool isPartial; | 269 bool isPartial; |
270 unsigned needsLayoutObjects; | 270 unsigned needsLayoutObjects; |
271 unsigned totalObjects; | 271 unsigned totalObjects; |
272 LocalFrame& frame = frameView->frame(); | 272 LocalFrame& frame = frameView->frame(); |
273 frame.countObjectsNeedingLayout(needsLayoutObjects, totalObjects, isPartial)
; | 273 frame.view()->countObjectsNeedingLayout(needsLayoutObjects, totalObjects, is
Partial); |
274 | 274 |
275 RefPtr<TracedValue> value = TracedValue::create(); | 275 RefPtr<TracedValue> value = TracedValue::create(); |
276 value->setInteger("dirtyObjects", needsLayoutObjects); | 276 value->setInteger("dirtyObjects", needsLayoutObjects); |
277 value->setInteger("totalObjects", totalObjects); | 277 value->setInteger("totalObjects", totalObjects); |
278 value->setBoolean("partialLayout", isPartial); | 278 value->setBoolean("partialLayout", isPartial); |
279 value->setString("frame", toHexString(&frame)); | 279 value->setString("frame", toHexString(&frame)); |
280 setCallStack(value.get()); | 280 setCallStack(value.get()); |
281 return value.release(); | 281 return value.release(); |
282 } | 282 } |
283 | 283 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 } | 712 } |
713 | 713 |
714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) | 714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) |
715 { | 715 { |
716 RefPtr<TracedValue> value = TracedValue::create(); | 716 RefPtr<TracedValue> value = TracedValue::create(); |
717 value->setString("state", player.playState()); | 717 value->setString("state", player.playState()); |
718 return value.release(); | 718 return value.release(); |
719 } | 719 } |
720 | 720 |
721 } | 721 } |
OLD | NEW |