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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Tooltip.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
Index: third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js b/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
index 0739889fa11d4f1242db70e642d52898bb2b1f1b..7d7b3533acb0392c01f0273cc96a9b9df8f78b99 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
@@ -33,7 +33,7 @@ WebInspector.Tooltip.prototype = {
*/
_mouseMove: function(event)
{
- var path = event.deepPath ? event.deepPath : event.path;
+ var path = event.deepPath && typeof event.deepPath == "function" ? event.deepPath() : event.path;
pfeldman 2016/02/01 22:52:17 You just made it undefined, no point in checking f
samli 2016/02/03 00:07:11 True, but I wanted to be able to remove the bit in
if (!path || event.buttons !== 0)
return;

Powered by Google App Engine
This is Rietveld 408576698