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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp

Issue 2699883002: Add type selector invalidation set for ruleset invalidations. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698