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

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

Issue 1653213002: Devtools: Use Event.deepPath as a function if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/devtools.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools.js b/third_party/WebKit/Source/devtools/front_end/devtools.js
index 05c2b25a3800a9cd76bba88af007f8f8a9264b7d..c118c88699019eb52146a2601c4e292e1e9454cb 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools.js
@@ -908,6 +908,9 @@ function installBackwardsCompatibility()
styleElement.type = "text/css";
styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }";
window.document.head.appendChild(styleElement);
+
+ // Support for legacy (<M49) frontends. Remove in M52.
+ Event.prototype.deepPath = undefined;
}
function windowLoaded()
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698