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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
index ee01b9a3a9629474052c8fa8135cff90a62f92e3..a247ef3a24a924f47800348af7886513329dc8be 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -711,7 +711,7 @@ Timeline.TimelineUIUtils = class {
Timeline.TimelineUIUtils._collectInvalidationNodeIds(nodeIdsToResolve, invalidationTrackingEvents);
var relatedNodes = null;
if (nodeIdsToResolve.size) {
- var domModel = SDK.DOMModel.fromTarget(target);
+ var domModel = target.model(SDK.DOMModel);
if (domModel) {
relatedNodes = await new Promise(fulfill =>
domModel.pushNodesByBackendIdsToFrontend(nodeIdsToResolve, fulfill));

Powered by Google App Engine
This is Rietveld 408576698