Index: third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp |
index 205ae7dd6f904c14098e5b27ce676be75521af0c..51c522e9b9206d16db5280e81b6e6d704e2fa058 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp |
@@ -180,12 +180,12 @@ String urlForFrame(LocalFrame* frame) { |
namespace InspectorScheduleStyleInvalidationTrackingEvent { |
std::unique_ptr<TracedValue> fillCommonPart( |
- Element& element, |
+ ContainerNode& node, |
const InvalidationSet& invalidationSet, |
const char* invalidatedSelector) { |
std::unique_ptr<TracedValue> value = TracedValue::create(); |
- value->setString("frame", toHexString(element.document().frame())); |
- setNodeInfo(value.get(), &element, "nodeId", "nodeName"); |
+ value->setString("frame", toHexString(node.document().frame())); |
+ setNodeInfo(value.get(), &node, "nodeId", "nodeName"); |
value->setString("invalidationSet", |
descendantInvalidationSetToIdString(invalidationSet)); |
value->setString("invalidatedSelectorId", invalidatedSelector); |
@@ -199,6 +199,8 @@ const char InspectorScheduleStyleInvalidationTrackingEvent::Attribute[] = |
const char InspectorScheduleStyleInvalidationTrackingEvent::Class[] = "class"; |
const char InspectorScheduleStyleInvalidationTrackingEvent::Id[] = "id"; |
const char InspectorScheduleStyleInvalidationTrackingEvent::Pseudo[] = "pseudo"; |
+const char InspectorScheduleStyleInvalidationTrackingEvent::RuleSet[] = |
+ "ruleset"; |
const char* resourcePriorityString(ResourceLoadPriority priority) { |
const char* priorityString = 0; |
@@ -268,6 +270,15 @@ InspectorScheduleStyleInvalidationTrackingEvent::pseudoChange( |
return value; |
} |
+std::unique_ptr<TracedValue> |
+InspectorScheduleStyleInvalidationTrackingEvent::ruleSetInvalidation( |
+ ContainerNode& rootNode, |
+ const InvalidationSet& invalidationSet) { |
+ std::unique_ptr<TracedValue> value = |
+ fillCommonPart(rootNode, invalidationSet, RuleSet); |
+ return value; |
+} |
+ |
String descendantInvalidationSetToIdString(const InvalidationSet& set) { |
return toHexString(&set); |
} |