| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 { | 148 { |
| 149 return this._treeElementSymbol; | 149 return this._treeElementSymbol; |
| 150 }, | 150 }, |
| 151 | 151 |
| 152 focus: function() | 152 focus: function() |
| 153 { | 153 { |
| 154 this._element.focus(); | 154 this._element.focus(); |
| 155 }, | 155 }, |
| 156 | 156 |
| 157 /** | 157 /** |
| 158 * @return {boolean} | |
| 159 */ | |
| 160 hasFocus: function() | |
| 161 { | |
| 162 return this._element === WebInspector.currentFocusElement(); | |
| 163 }, | |
| 164 | |
| 165 /** | |
| 166 * @param {boolean} wrap | 158 * @param {boolean} wrap |
| 167 */ | 159 */ |
| 168 setWordWrap: function(wrap) | 160 setWordWrap: function(wrap) |
| 169 { | 161 { |
| 170 this._element.classList.toggle("elements-tree-nowrap", !wrap); | 162 this._element.classList.toggle("elements-tree-nowrap", !wrap); |
| 171 }, | 163 }, |
| 172 | 164 |
| 173 /** | 165 /** |
| 174 * @return {!WebInspector.DOMModel} | 166 * @return {!WebInspector.DOMModel} |
| 175 */ | 167 */ |
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 if (node) { | 1789 if (node) { |
| 1798 this.treeOutline._selectedDOMNode = node; | 1790 this.treeOutline._selectedDOMNode = node; |
| 1799 this.treeOutline._selectedNodeChanged(); | 1791 this.treeOutline._selectedNodeChanged(); |
| 1800 } | 1792 } |
| 1801 } | 1793 } |
| 1802 return true; | 1794 return true; |
| 1803 }, | 1795 }, |
| 1804 | 1796 |
| 1805 __proto__: TreeElement.prototype | 1797 __proto__: TreeElement.prototype |
| 1806 } | 1798 } |
| OLD | NEW |