| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 }, | 164 }, |
| 165 | 165 |
| 166 _updateTreeOutlineVisibleWidth: function() | 166 _updateTreeOutlineVisibleWidth: function() |
| 167 { | 167 { |
| 168 if (!this._treeOutlines.length) | 168 if (!this._treeOutlines.length) |
| 169 return; | 169 return; |
| 170 | 170 |
| 171 var width = this._splitView.element.offsetWidth; | 171 var width = this._splitView.element.offsetWidth; |
| 172 if (this._splitView.isVertical()) | 172 if (this._splitView.isVertical()) |
| 173 width -= this._splitView.sidebarSize(); | 173 width -= this._splitView.sidebarSize(); |
| 174 for (var i = 0; i > this._treeOutlines.length; ++i) { | 174 for (var i = 0; i < this._treeOutlines.length; ++i) { |
| 175 this._treeOutlines[i].setVisibleWidth(width); | 175 this._treeOutlines[i].setVisibleWidth(width); |
| 176 this._treeOutlines[i].updateSelection(); | 176 this._treeOutlines[i].updateSelection(); |
| 177 } | 177 } |
| 178 this.updateBreadcrumbSizes(); | 178 this.updateBreadcrumbSizes(); |
| 179 }, | 179 }, |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * @return {!Element} | 182 * @return {!Element} |
| 183 */ | 183 */ |
| 184 defaultFocusedElement: function() | 184 defaultFocusedElement: function() |
| (...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 /** | 1467 /** |
| 1468 * @suppressReceiverCheck | 1468 * @suppressReceiverCheck |
| 1469 * @this {Element} | 1469 * @this {Element} |
| 1470 */ | 1470 */ |
| 1471 function parentElement() | 1471 function parentElement() |
| 1472 { | 1472 { |
| 1473 return this.parentElement; | 1473 return this.parentElement; |
| 1474 } | 1474 } |
| 1475 } | 1475 } |
| 1476 } | 1476 } |
| OLD | NEW |