Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1210 { | 1210 { |
| 1211 var treeOutline = this._treeOutlineForNode(node); | 1211 var treeOutline = this._treeOutlineForNode(node); |
| 1212 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin dTreeElement(node)); | 1212 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin dTreeElement(node)); |
| 1213 }, | 1213 }, |
| 1214 | 1214 |
| 1215 /** | 1215 /** |
| 1216 * @param {!Event} event | 1216 * @param {!Event} event |
| 1217 */ | 1217 */ |
| 1218 handleCopyEvent: function(event) | 1218 handleCopyEvent: function(event) |
| 1219 { | 1219 { |
| 1220 if (!WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("el ements-tree-outline")) | |
|
aandrey
2014/07/29 13:38:25
WebInspector.currentFocusElement() can return unde
| |
| 1221 return; | |
| 1220 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); | 1222 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); |
| 1221 if (treeOutline) | 1223 if (treeOutline) |
| 1222 treeOutline.handleCopyOrCutKeyboardEvent(false, event); | 1224 treeOutline.handleCopyOrCutKeyboardEvent(false, event); |
| 1223 }, | 1225 }, |
| 1224 | 1226 |
| 1225 /** | 1227 /** |
| 1226 * @param {!Event} event | 1228 * @param {!Event} event |
| 1227 */ | 1229 */ |
| 1228 handleCutEvent: function(event) | 1230 handleCutEvent: function(event) |
| 1229 { | 1231 { |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1532 /** | 1534 /** |
| 1533 * @suppressReceiverCheck | 1535 * @suppressReceiverCheck |
| 1534 * @this {Element} | 1536 * @this {Element} |
| 1535 */ | 1537 */ |
| 1536 function parentElement() | 1538 function parentElement() |
| 1537 { | 1539 { |
| 1538 return this.parentElement; | 1540 return this.parentElement; |
| 1539 } | 1541 } |
| 1540 } | 1542 } |
| 1541 } | 1543 } |
| OLD | NEW |