| 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 { | 713 { |
| 714 var treeOutline = this._treeOutlineForNode(node); | 714 var treeOutline = this._treeOutlineForNode(node); |
| 715 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin
dTreeElement(node)); | 715 return /** @type {?WebInspector.ElementsTreeElement} */ (treeOutline.fin
dTreeElement(node)); |
| 716 }, | 716 }, |
| 717 | 717 |
| 718 /** | 718 /** |
| 719 * @param {!Event} event | 719 * @param {!Event} event |
| 720 */ | 720 */ |
| 721 handleCopyEvent: function(event) | 721 handleCopyEvent: function(event) |
| 722 { | 722 { |
| 723 if (!WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("el
ements-tree-outline")) | 723 if (!WebInspector.currentFocusElement() || !WebInspector.currentFocusEle
ment().enclosingNodeOrSelfWithClass("elements-tree-outline")) |
| 724 return; | 724 return; |
| 725 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); | 725 var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); |
| 726 if (treeOutline) | 726 if (treeOutline) |
| 727 treeOutline.handleCopyOrCutKeyboardEvent(false, event); | 727 treeOutline.handleCopyOrCutKeyboardEvent(false, event); |
| 728 }, | 728 }, |
| 729 | 729 |
| 730 /** | 730 /** |
| 731 * @param {!Event} event | 731 * @param {!Event} event |
| 732 */ | 732 */ |
| 733 handleCutEvent: function(event) | 733 handleCutEvent: function(event) |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 WebInspector.ElementsPanelFactory.prototype = { | 1075 WebInspector.ElementsPanelFactory.prototype = { |
| 1076 /** | 1076 /** |
| 1077 * @override | 1077 * @override |
| 1078 * @return {!WebInspector.Panel} | 1078 * @return {!WebInspector.Panel} |
| 1079 */ | 1079 */ |
| 1080 createPanel: function() | 1080 createPanel: function() |
| 1081 { | 1081 { |
| 1082 return WebInspector.ElementsPanel.instance(); | 1082 return WebInspector.ElementsPanel.instance(); |
| 1083 } | 1083 } |
| 1084 } | 1084 } |
| OLD | NEW |