| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::selectorPart(Element& element, const char* reason, const DescendantIn
validationSet& invalidationSet, const String& selectorPart) | 233 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::selectorPart(Element& element, const char* reason, const DescendantIn
validationSet& invalidationSet, const String& selectorPart) |
| 234 { | 234 { |
| 235 RefPtr<TracedValue> value = fillCommonPart(element, reason); | 235 RefPtr<TracedValue> value = fillCommonPart(element, reason); |
| 236 value->beginArray("invalidationList"); | 236 value->beginArray("invalidationList"); |
| 237 invalidationSet.toTracedValue(value.get()); | 237 invalidationSet.toTracedValue(value.get()); |
| 238 value->endArray(); | 238 value->endArray(); |
| 239 value->setString("selectorPart", selectorPart); | 239 value->setString("selectorPart", selectorPart); |
| 240 return value.release(); | 240 return value.release(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::invalidationList(Element& element, const WillBeHeapVector<RefPtrWillB
eMember<DescendantInvalidationSet> >& invalidationList) | 243 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::invalidationList(Element& element, const WillBeHeapVector<RefPtrWillB
eMember<DescendantInvalidationSet>>& invalidationList) |
| 244 { | 244 { |
| 245 RefPtr<TracedValue> value = fillCommonPart(element, ElementHasPendingInvalid
ationList); | 245 RefPtr<TracedValue> value = fillCommonPart(element, ElementHasPendingInvalid
ationList); |
| 246 value->beginArray("invalidationList"); | 246 value->beginArray("invalidationList"); |
| 247 for (const auto& invalidationSet : invalidationList) | 247 for (const auto& invalidationSet : invalidationList) |
| 248 invalidationSet->toTracedValue(value.get()); | 248 invalidationSet->toTracedValue(value.get()); |
| 249 value->endArray(); | 249 value->endArray(); |
| 250 return value.release(); | 250 return value.release(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleRecalcInvalidatio
nTrackingEvent::data(Node* node, const StyleChangeReasonForTracing& reason) | 253 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleRecalcInvalidatio
nTrackingEvent::data(Node* node, const StyleChangeReasonForTracing& reason) |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 } | 718 } |
| 719 | 719 |
| 720 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) | 720 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) |
| 721 { | 721 { |
| 722 RefPtr<TracedValue> value = TracedValue::create(); | 722 RefPtr<TracedValue> value = TracedValue::create(); |
| 723 value->setString("state", player.playState()); | 723 value->setString("state", player.playState()); |
| 724 return value.release(); | 724 return value.release(); |
| 725 } | 725 } |
| 726 | 726 |
| 727 } | 727 } |
| OLD | NEW |