Chromium Code Reviews| Index: Source/devtools/front_end/ui/treeoutline.js |
| diff --git a/Source/devtools/front_end/ui/treeoutline.js b/Source/devtools/front_end/ui/treeoutline.js |
| index 92b4e610c062a68b10b65a7813562e2b122e01c0..f6ff33998b78f45a1b33c9fafae00402131ec561 100644 |
| --- a/Source/devtools/front_end/ui/treeoutline.js |
| +++ b/Source/devtools/front_end/ui/treeoutline.js |
| @@ -323,7 +323,7 @@ TreeOutline.prototype.findTreeElement = function(representedObject, getParent) |
| */ |
| TreeOutline.prototype.treeElementFromPoint = function(x, y) |
| { |
| - var node = this._childrenListNode.ownerDocument.elementFromPoint(x, y); |
| + var node = this._childrenListNode.ownerDocument.deepElementFromPoint(x, y); |
| if (!node) |
| return null; |
| @@ -333,6 +333,15 @@ TreeOutline.prototype.treeElementFromPoint = function(x, y) |
| return null; |
| } |
| +/** |
| + * @param {?Event} event |
|
aandrey
2014/09/25 05:47:21
either {!Event} or check for null before accessing
pfeldman
2014/10/13 13:33:11
Done.
|
| + * @return {?TreeElement} |
| + */ |
| +TreeOutline.prototype.treeElementFromEvent = function(event) |
| +{ |
| + return this.treeElementFromPoint(event.pageX, event.pageY); |
| +} |
| + |
| TreeOutline.prototype._treeKeyDown = function(event) |
| { |
| if (event.target !== this._childrenListNode) |