Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index 6e3664dd3b81b5003fbf44a78c4fef1685c9a93b..5073270cc399c6edb87e5cb07e4cb41fcef59f06 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -2255,8 +2255,8 @@ void InspectorDOMAgent::getHighlightObjectForTest(ErrorString* errorString, int |
Node* node = assertNode(errorString, nodeId); |
if (!node) |
return; |
- OwnPtrWillBeRawPtr<InspectorHighlight> highlight = InspectorHighlight::create(node, InspectorHighlight::defaultConfig(), true); |
- result = highlight->asJSONObject(); |
+ InspectorHighlight highlight(node, InspectorHighlight::defaultConfig(), true); |
+ result = highlight.asJSONObject(); |
} |
PassRefPtr<TypeBuilder::Runtime::RemoteObject> InspectorDOMAgent::resolveNode(Node* node, const String& objectGroup) |