| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 120 } |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * @return {!SDK.DOMModel} | 123 * @return {!SDK.DOMModel} |
| 124 */ | 124 */ |
| 125 domModel() { | 125 domModel() { |
| 126 return this._domModel; | 126 return this._domModel; |
| 127 } | 127 } |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * @param {?UI.InplaceEditor.Controller} multilineEditing | 130 * @param {?Elements.MultilineEditorController} multilineEditing |
| 131 */ | 131 */ |
| 132 setMultilineEditing(multilineEditing) { | 132 setMultilineEditing(multilineEditing) { |
| 133 this._multilineEditing = multilineEditing; | 133 this._multilineEditing = multilineEditing; |
| 134 } | 134 } |
| 135 | 135 |
| 136 /** | 136 /** |
| 137 * @return {number} | 137 * @return {number} |
| 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) | 148 if (this._multilineEditing) |
| 149 this._multilineEditing.setWidth(this._visibleWidth); | 149 this._multilineEditing.resize(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 /** | 152 /** |
| 153 * @param {?Elements.ElementsTreeOutline.ClipboardData} data | 153 * @param {?Elements.ElementsTreeOutline.ClipboardData} data |
| 154 */ | 154 */ |
| 155 _setClipboardData(data) { | 155 _setClipboardData(data) { |
| 156 if (this._clipboardNodeData) { | 156 if (this._clipboardNodeData) { |
| 157 var treeElement = this.findTreeElement(this._clipboardNodeData.node); | 157 var treeElement = this.findTreeElement(this._clipboardNodeData.node); |
| 158 if (treeElement) | 158 if (treeElement) |
| 159 treeElement.setInClipboard(false); | 159 treeElement.setInClipboard(false); |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 */ | 1689 */ |
| 1690 function resolved(node) { | 1690 function resolved(node) { |
| 1691 if (node) { | 1691 if (node) { |
| 1692 this.treeOutline._selectedDOMNode = node; | 1692 this.treeOutline._selectedDOMNode = node; |
| 1693 this.treeOutline._selectedNodeChanged(); | 1693 this.treeOutline._selectedNodeChanged(); |
| 1694 } | 1694 } |
| 1695 } | 1695 } |
| 1696 return true; | 1696 return true; |
| 1697 } | 1697 } |
| 1698 }; | 1698 }; |
| OLD | NEW |