Chromium Code Reviews| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 */ | 138 */ |
| 139 visibleWidth() { | 139 visibleWidth() { |
| 140 return this._visibleWidth; | 140 return this._visibleWidth; |
| 141 } | 141 } |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * @param {number} width | 144 * @param {number} width |
| 145 */ | 145 */ |
| 146 setVisibleWidth(width) { | 146 setVisibleWidth(width) { |
| 147 this._visibleWidth = width; | 147 this._visibleWidth = width; |
| 148 if (this._multilineEditing) | |
|
lushnikov
2017/03/01 23:52:48
let's resize to accomodate all space
einbinder
2017/03/02 00:25:09
Done.
| |
| 149 this._multilineEditing.setWidth(this._visibleWidth); | |
| 150 } | 148 } |
| 151 | 149 |
| 152 /** | 150 /** |
| 153 * @param {?Elements.ElementsTreeOutline.ClipboardData} data | 151 * @param {?Elements.ElementsTreeOutline.ClipboardData} data |
| 154 */ | 152 */ |
| 155 _setClipboardData(data) { | 153 _setClipboardData(data) { |
| 156 if (this._clipboardNodeData) { | 154 if (this._clipboardNodeData) { |
| 157 var treeElement = this.findTreeElement(this._clipboardNodeData.node); | 155 var treeElement = this.findTreeElement(this._clipboardNodeData.node); |
| 158 if (treeElement) | 156 if (treeElement) |
| 159 treeElement.setInClipboard(false); | 157 treeElement.setInClipboard(false); |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1689 */ | 1687 */ |
| 1690 function resolved(node) { | 1688 function resolved(node) { |
| 1691 if (node) { | 1689 if (node) { |
| 1692 this.treeOutline._selectedDOMNode = node; | 1690 this.treeOutline._selectedDOMNode = node; |
| 1693 this.treeOutline._selectedNodeChanged(); | 1691 this.treeOutline._selectedNodeChanged(); |
| 1694 } | 1692 } |
| 1695 } | 1693 } |
| 1696 return true; | 1694 return true; |
| 1697 } | 1695 } |
| 1698 }; | 1696 }; |
| OLD | NEW |