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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js

Issue 1637813002: Change Event.deepPath to a method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {!Document} doc 7 * @param {!Document} doc
8 */ 8 */
9 WebInspector.Tooltip = function(doc) 9 WebInspector.Tooltip = function(doc)
10 { 10 {
(...skipping 15 matching lines...) Expand all
26 // Wait time before opening a tooltip. 26 // Wait time before opening a tooltip.
27 "OpeningDelay": 600 27 "OpeningDelay": 600
28 } 28 }
29 29
30 WebInspector.Tooltip.prototype = { 30 WebInspector.Tooltip.prototype = {
31 /** 31 /**
32 * @param {!Event} event 32 * @param {!Event} event
33 */ 33 */
34 _mouseMove: function(event) 34 _mouseMove: function(event)
35 { 35 {
36 var path = event.path; 36 var path = event.deepPath() ? event.deepPath() : event.path;
samli 2016/02/18 22:48:29 Remove this change please.
yuzuchan 2016/02/19 03:00:24 Done.
37 if (!path || event.buttons !== 0) 37 if (!path || event.buttons !== 0)
38 return; 38 return;
39 39
40 if (this._anchorElement && path.indexOf(this._anchorElement) === -1) 40 if (this._anchorElement && path.indexOf(this._anchorElement) === -1)
41 this._hide(false); 41 this._hide(false);
42 42
43 for (var element of path) { 43 for (var element of path) {
44 if (element === this._anchorElement) { 44 if (element === this._anchorElement) {
45 return; 45 return;
46 } else if (element[WebInspector.Tooltip._symbol]) { 46 } else if (element[WebInspector.Tooltip._symbol]) {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 /** 197 /**
198 * @param {!Element|string} x 198 * @param {!Element|string} x
199 * @this {!Element} 199 * @this {!Element}
200 */ 200 */
201 set: function(x) 201 set: function(x)
202 { 202 {
203 WebInspector.Tooltip.install(this, x); 203 WebInspector.Tooltip.install(this, x);
204 } 204 }
205 }); 205 });
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698