Changeset 53242 in webkit
- Timestamp:
- Jan 13, 2010 11:42:39 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53241 r53242 1 2010-01-13 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Web Inspector: use hidden text area for clipboard in order to 6 workaround windows setData bug. 7 8 https://bugs.webkit.org/show_bug.cgi?id=33633 9 10 * inspector/front-end/TextEditor.js: 11 (WebInspector.TextEditor): 12 (WebInspector.TextEditor.prototype._copy): 13 * inspector/front-end/inspector.css: 14 1 15 2010-01-13 Mads Ager <ager@chromium.org> 2 16 -
trunk/WebCore/inspector/front-end/TextEditor.js
r53205 r53242 49 49 this._sheet.className = "text-editor-sheet"; 50 50 this._container.appendChild(this._sheet); 51 52 this._clipboard = document.createElement("textarea"); 53 this._clipboard.className = "text-editor-clip"; 54 this._container.appendChild(this._clipboard); 51 55 52 56 var cursorElement = document.createElement("div"); … … 736 740 var text = this._textModel.copyRange(range); 737 741 738 e.preventDefault(); 739 e.clipboardData.clearData(); 740 e.clipboardData.setData("Text", text); 742 this._clipboard.value = text; 743 this._clipboard.select(); 741 744 }, 742 745 -
trunk/WebCore/inspector/front-end/inspector.css
r53141 r53242 3789 3789 } 3790 3790 3791 .text-editor-sheet {3791 .text-editor-sheet, .text-editor-clip { 3792 3792 opacity: 0; 3793 3793 }
Note: See TracChangeset
for help on using the changeset viewer.