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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.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/sdk/DOMModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js
index b6d4378f881608d8dfd771da4ddf8d60ced25743..cbc30f90a6b3e685d7c17f7dd9469442d8594ab1 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js
@@ -1826,10 +1826,11 @@ SDK.DOMModel = class extends SDK.SDKModel {
/**
* @param {number} x
* @param {number} y
+ * @param {boolean} includeUserAgentShadowDOM
* @param {function(?SDK.DOMNode)} callback
*/
- nodeForLocation(x, y, callback) {
- this._agent.getNodeForLocation(x, y, mycallback.bind(this));
+ nodeForLocation(x, y, includeUserAgentShadowDOM, callback) {
+ this._agent.getNodeForLocation(x, y, includeUserAgentShadowDOM, mycallback.bind(this));
/**
* @param {?Protocol.Error} error

Powered by Google App Engine
This is Rietveld 408576698