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 "core/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
10 #include "core/animation/KeyframeEffect.h" | 10 #include "core/animation/KeyframeEffect.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::selectorPart(Element& element, const char* reason, const DescendantIn
validationSet& invalidationSet, const String& selectorPart) | 234 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::selectorPart(Element& element, const char* reason, const DescendantIn
validationSet& invalidationSet, const String& selectorPart) |
235 { | 235 { |
236 RefPtr<TracedValue> value = fillCommonPart(element, reason); | 236 RefPtr<TracedValue> value = fillCommonPart(element, reason); |
237 value->beginArray("invalidationList"); | 237 value->beginArray("invalidationList"); |
238 invalidationSet.toTracedValue(value.get()); | 238 invalidationSet.toTracedValue(value.get()); |
239 value->endArray(); | 239 value->endArray(); |
240 value->setString("selectorPart", selectorPart); | 240 value->setString("selectorPart", selectorPart); |
241 return value.release(); | 241 return value.release(); |
242 } | 242 } |
243 | 243 |
244 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::invalidationList(Element& element, const WillBeHeapVector<RefPtrWillB
eMember<DescendantInvalidationSet> >& invalidationList) | 244 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleInvalidatorInvali
dateEvent::invalidationList(Element& element, const InvalidationSetVector& inval
idationList) |
245 { | 245 { |
246 RefPtr<TracedValue> value = fillCommonPart(element, ElementHasPendingInvalid
ationList); | 246 RefPtr<TracedValue> value = fillCommonPart(element, ElementHasPendingInvalid
ationList); |
247 value->beginArray("invalidationList"); | 247 value->beginArray("invalidationList"); |
248 for (const auto& invalidationSet : invalidationList) | 248 for (const auto& invalidationSet : invalidationList) |
249 invalidationSet->toTracedValue(value.get()); | 249 invalidationSet->toTracedValue(value.get()); |
250 value->endArray(); | 250 value->endArray(); |
251 return value.release(); | 251 return value.release(); |
252 } | 252 } |
253 | 253 |
254 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleRecalcInvalidatio
nTrackingEvent::data(Node* node, const StyleChangeReasonForTracing& reason) | 254 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorStyleRecalcInvalidatio
nTrackingEvent::data(Node* node, const StyleChangeReasonForTracing& reason) |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 if (request.move()) | 772 if (request.move()) |
773 value->setBoolean("move", true); | 773 value->setBoolean("move", true); |
774 if (request.listBased()) | 774 if (request.listBased()) |
775 value->setBoolean("listBased", true); | 775 value->setBoolean("listBased", true); |
776 else if (Node* node = result.innerNode()) | 776 else if (Node* node = result.innerNode()) |
777 setNodeInfo(value.get(), node, "nodeId", "nodeName"); | 777 setNodeInfo(value.get(), node, "nodeId", "nodeName"); |
778 return value; | 778 return value; |
779 } | 779 } |
780 | 780 |
781 } | 781 } |
OLD | NEW |