| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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} | 158 * @return {boolean} |
| 159 */ | 159 */ |
| 160 hasFocus: function() | 160 hasFocus: function() |
| 161 { | 161 { |
| 162 return this._element === WebInspector.currentFocusElement(); | 162 return this._element.hasFocus(); |
| 163 }, | 163 }, |
| 164 | 164 |
| 165 /** | 165 /** |
| 166 * @param {boolean} wrap | 166 * @param {boolean} wrap |
| 167 */ | 167 */ |
| 168 setWordWrap: function(wrap) | 168 setWordWrap: function(wrap) |
| 169 { | 169 { |
| 170 this._element.classList.toggle("elements-tree-nowrap", !wrap); | 170 this._element.classList.toggle("elements-tree-nowrap", !wrap); |
| 171 }, | 171 }, |
| 172 | 172 |
| (...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 if (node) { | 1797 if (node) { |
| 1798 this.treeOutline._selectedDOMNode = node; | 1798 this.treeOutline._selectedDOMNode = node; |
| 1799 this.treeOutline._selectedNodeChanged(); | 1799 this.treeOutline._selectedNodeChanged(); |
| 1800 } | 1800 } |
| 1801 } | 1801 } |
| 1802 return true; | 1802 return true; |
| 1803 }, | 1803 }, |
| 1804 | 1804 |
| 1805 __proto__: TreeElement.prototype | 1805 __proto__: TreeElement.prototype |
| 1806 } | 1806 } |
| OLD | NEW |