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

Side by Side Diff: Source/core/inspector/InspectorTraceEvents.cpp

Issue 927773002: Keep track of multiple layout roots (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add bug link Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/layout/LayoutBox.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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698