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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased Created 3 years, 8 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/sources/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index a1ce9bf75696b44b07321de24613ec4ab9fc62e0..6d4c06d470a71308bb7087a057afdc811e5b7555 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -436,11 +436,11 @@ Sources.NavigatorView = class extends UI.VBox {
*/
function hoverCallback(hovered) {
if (hovered) {
- var domModel = target.model(SDK.DOMModel);
- if (domModel)
- domModel.highlightFrame(frame.id);
+ var overlayModel = target.model(SDK.OverlayModel);
+ if (overlayModel)
+ overlayModel.highlightFrame(frame.id);
} else {
- SDK.DOMModel.hideDOMNodeHighlight();
+ SDK.OverlayModel.hideDOMNodeHighlight();
}
}
return frameNode;

Powered by Google App Engine
This is Rietveld 408576698