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

Unified Diff: Source/devtools/front_end/LayerTreeModel.js

Issue 206313004: DevTools: Rename WebInspector.DOMAgent into WebInspector.DOMModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 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 | « Source/devtools/front_end/LayerTree.js ('k') | Source/devtools/front_end/Layers3DView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/LayerTreeModel.js
diff --git a/Source/devtools/front_end/LayerTreeModel.js b/Source/devtools/front_end/LayerTreeModel.js
index 2f3949a789cd726e1d8c69c99a94443ee37a88bb..c53628bd92e9f1f94c59777fc0b47113df137418 100644
--- a/Source/devtools/front_end/LayerTreeModel.js
+++ b/Source/devtools/front_end/LayerTreeModel.js
@@ -41,7 +41,7 @@ WebInspector.LayerTreeModel = function()
this._lastPaintRectByLayerId = {};
this._backendNodeIdToNodeId = {};
InspectorBackend.registerLayerTreeDispatcher(new WebInspector.LayerTreeDispatcher(this));
- WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.DocumentUpdated, this._onDocumentUpdated, this);
+ WebInspector.domModel.addEventListener(WebInspector.DOMModel.Events.DocumentUpdated, this._onDocumentUpdated, this);
}
WebInspector.LayerTreeModel.Events = {
@@ -202,7 +202,7 @@ WebInspector.LayerTreeModel.prototype = {
for (var i = 0; i < layers.length; ++i) {
var backendNodeId = layers[i].backendNodeId;
if (!backendNodeId || idsToResolve[backendNodeId] ||
- (this._backendNodeIdToNodeId[backendNodeId] && WebInspector.domAgent.nodeForId(this._backendNodeIdToNodeId[backendNodeId]))) {
+ (this._backendNodeIdToNodeId[backendNodeId] && WebInspector.domModel.nodeForId(this._backendNodeIdToNodeId[backendNodeId]))) {
continue;
}
idsToResolve[backendNodeId] = true;
@@ -212,7 +212,7 @@ WebInspector.LayerTreeModel.prototype = {
callback();
return;
}
- WebInspector.domAgent.pushNodesByBackendIdsToFrontend(requestedIds, populateBackendNodeIdMap.bind(this));
+ WebInspector.domModel.pushNodesByBackendIdsToFrontend(requestedIds, populateBackendNodeIdMap.bind(this));
/**
* @this {WebInspector.LayerTreeModel}
« no previous file with comments | « Source/devtools/front_end/LayerTree.js ('k') | Source/devtools/front_end/Layers3DView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698