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

Unified Diff: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js

Issue 2763913002: Allow DOM.getNodeForLocation to skip to nearest non-shadow ancestor (Closed)
Patch Set: Use Common.moduleSettings value to in/exclude UA shadow dom 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/screencast/ScreencastView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
index 95d5491fcff536e1b760797a48681c2fb787f862..1c45cbb71d43dab826e883b480500cbf7ec8dee4 100644
--- a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
+++ b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
@@ -231,7 +231,8 @@ Screencast.ScreencastView = class extends UI.VBox {
var position = this._convertIntoScreenSpace(event);
this._domModel.nodeForLocation(
Math.floor(position.x / this._pageScaleFactor + this._scrollOffsetX),
- Math.floor(position.y / this._pageScaleFactor + this._scrollOffsetY), callback.bind(this));
+ Math.floor(position.y / this._pageScaleFactor + this._scrollOffsetY),
+ Common.moduleSetting('showUAShadowDOM').get(), callback.bind(this));
peleg 2017/03/23 02:37:40 this works, but is there anywhere else we need to
pfeldman 2017/03/23 17:26:03 module dependencies are defined in module.json fil
/**
* @param {?SDK.DOMNode} node

Powered by Google App Engine
This is Rietveld 408576698