| 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 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 InvalidationSetVector& inval
idationList) |
| 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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 if (request.move()) | 771 if (request.move()) |
| 772 value->setBoolean("move", true); | 772 value->setBoolean("move", true); |
| 773 if (request.listBased()) | 773 if (request.listBased()) |
| 774 value->setBoolean("listBased", true); | 774 value->setBoolean("listBased", true); |
| 775 else if (Node* node = result.innerNode()) | 775 else if (Node* node = result.innerNode()) |
| 776 setNodeInfo(value.get(), node, "nodeId", "nodeName"); | 776 setNodeInfo(value.get(), node, "nodeId", "nodeName"); |
| 777 return value; | 777 return value; |
| 778 } | 778 } |
| 779 | 779 |
| 780 } | 780 } |
| OLD | NEW |