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

Unified Diff: Source/devtools/front_end/sdk/DOMModel.js

Issue 964493002: DevTools: improve TTIE, do not select body before the target element upon inspect element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: headless test fixed Created 5 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 | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/DOMModel.js
diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
index 45c8aee64ee36653b7f4d0b8f7e4494669080e4f..7e8bf131eba44c199392fc280127e2a21a3aa43f 100644
--- a/Source/devtools/front_end/sdk/DOMModel.js
+++ b/Source/devtools/front_end/sdk/DOMModel.js
@@ -1155,6 +1155,7 @@ WebInspector.DOMModel.prototype = {
resumeModel: function()
{
this._agent.enable();
+ this._setDocument(null);
},
/**
@@ -1580,11 +1581,12 @@ WebInspector.DOMModel.prototype = {
},
/**
- * @param {!DOMAgent.NodeId} nodeId
+ * @param {!DOMAgent.BackendNodeId} backendNodeId
*/
- _inspectNodeRequested: function(nodeId)
+ _inspectNodeRequested: function(backendNodeId)
{
- this.dispatchEventToListeners(WebInspector.DOMModel.Events.NodeInspected, this.nodeForId(nodeId));
+ var deferredNode = new WebInspector.DeferredDOMNode(this.target(), backendNodeId);
+ this.dispatchEventToListeners(WebInspector.DOMModel.Events.NodeInspected, deferredNode);
},
/**
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698