| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 if (!treeOutline) | 721 if (!treeOutline) |
| 722 return; | 722 return; |
| 723 | 723 |
| 724 if (!treeOutline.editing()) { | 724 if (!treeOutline.editing()) { |
| 725 handleUndoRedo.call(this, treeOutline); | 725 handleUndoRedo.call(this, treeOutline); |
| 726 if (event.handled) | 726 if (event.handled) |
| 727 return; | 727 return; |
| 728 } | 728 } |
| 729 | 729 |
| 730 treeOutline.handleShortcut(event); | 730 treeOutline.handleShortcut(event); |
| 731 if (event.handled) |
| 732 return; |
| 733 |
| 734 WebInspector.Panel.prototype.handleShortcut.call(this, event); |
| 731 }, | 735 }, |
| 732 | 736 |
| 733 /** | 737 /** |
| 734 * @param {?WebInspector.DOMNode} node | 738 * @param {?WebInspector.DOMNode} node |
| 735 * @return {?WebInspector.ElementsTreeOutline} | 739 * @return {?WebInspector.ElementsTreeOutline} |
| 736 */ | 740 */ |
| 737 _treeOutlineForNode: function(node) | 741 _treeOutlineForNode: function(node) |
| 738 { | 742 { |
| 739 if (!node) | 743 if (!node) |
| 740 return null; | 744 return null; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 | 1103 |
| 1100 WebInspector.ElementsPanelFactory.prototype = { | 1104 WebInspector.ElementsPanelFactory.prototype = { |
| 1101 /** | 1105 /** |
| 1102 * @return {!WebInspector.Panel} | 1106 * @return {!WebInspector.Panel} |
| 1103 */ | 1107 */ |
| 1104 createPanel: function() | 1108 createPanel: function() |
| 1105 { | 1109 { |
| 1106 return WebInspector.ElementsPanel.instance(); | 1110 return WebInspector.ElementsPanel.instance(); |
| 1107 } | 1111 } |
| 1108 } | 1112 } |
| OLD | NEW |