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

Unified Diff: Source/core/inspector/InspectorDOMAgent.cpp

Issue 1024423002: Turn the InspectorHighlight builder into a stack allocated object. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | Source/core/inspector/InspectorHighlight.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | Source/core/inspector/InspectorHighlight.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698