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

Unified Diff: Source/devtools/front_end/ui/UIUtils.js

Issue 602783002: Devtools: make DOM traversal utilities climb shadow tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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: Source/devtools/front_end/ui/UIUtils.js
diff --git a/Source/devtools/front_end/ui/UIUtils.js b/Source/devtools/front_end/ui/UIUtils.js
index 57f0d156edeffa10a54af1dcad0f1ab71c6233e4..1ed047d6685ddff5b79b7cf9d2c80a180b0d3e30 100644
--- a/Source/devtools/front_end/ui/UIUtils.js
+++ b/Source/devtools/front_end/ui/UIUtils.js
@@ -185,7 +185,7 @@ WebInspector.isBeingEdited = function(node)
while (element) {
if (element.__editing)
return true;
- element = element.parentElement;
+ element = element.parentElementOrShadowHost();
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698