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

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

Issue 2089063005: Schedule sibling invalidation sets for sibling insert/remove. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed minDirectAdjacent optimization. Created 4 years, 6 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 bfaea72573b3d811be42a03cbf2ca02bbf1ff323..7caffe4c1889c1ec941befbae8b799e9c7f6d262 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
@@ -241,11 +241,11 @@ const char InspectorStyleInvalidatorInvalidateEvent::InvalidationSetMatchedTagNa
const char InspectorStyleInvalidatorInvalidateEvent::PreventStyleSharingForParent[] = "Prevent style sharing for parent";
namespace InspectorStyleInvalidatorInvalidateEvent {
-std::unique_ptr<TracedValue> fillCommonPart(Element& element, const char* reason)
+std::unique_ptr<TracedValue> fillCommonPart(ContainerNode& node, const char* reason)
{
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("reason", reason);
return value;
}
@@ -266,9 +266,9 @@ std::unique_ptr<TracedValue> InspectorStyleInvalidatorInvalidateEvent::selectorP
return value;
}
-std::unique_ptr<TracedValue> InspectorStyleInvalidatorInvalidateEvent::invalidationList(Element& element, const Vector<RefPtr<InvalidationSet>>& invalidationList)
+std::unique_ptr<TracedValue> InspectorStyleInvalidatorInvalidateEvent::invalidationList(ContainerNode& node, const Vector<RefPtr<InvalidationSet>>& invalidationList)
{
- std::unique_ptr<TracedValue> value = fillCommonPart(element, ElementHasPendingInvalidationList);
+ std::unique_ptr<TracedValue> value = fillCommonPart(node, ElementHasPendingInvalidationList);
value->beginArray("invalidationList");
for (const auto& invalidationSet : invalidationList)
invalidationSet->toTracedValue(value.get());
« 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