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()); |