Changeset 52440 in webkit
- Timestamp:
- Dec 21, 2009 3:10:56 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r52439 r52440 1 2009-12-20 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Web Inspector: Can’t copy outer html of selected node. 6 Also adds "Copy as HTML" context menu item. 7 8 https://bugs.webkit.org/show_bug.cgi?id=32802 9 10 * English.lproj/localizedStrings.js: 11 * inspector/front-end/ElementsTreeOutline.js: 12 (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu): 13 * inspector/front-end/inspector.js: 14 (WebInspector.documentCanCopy): 15 1 16 2009-12-20 Pavel Feldman <pfeldman@chromium.org> 2 17 -
trunk/WebCore/inspector/front-end/ElementsTreeOutline.js
r52168 r52440 604 604 605 605 // Add node-related actions. 606 contextMenu.appendItem(WebInspector.UIString("Copy as HTML"), this._copyHTML.bind(this)); 606 607 contextMenu.appendItem(WebInspector.UIString("Delete Node"), this.remove.bind(this)); 607 608 }, … … 960 961 var callId = WebInspector.Callback.wrap(removeNodeCallback); 961 962 InspectorBackend.removeNode(callId, this.representedObject.id); 963 }, 964 965 _copyHTML: function(node) 966 { 967 InspectorBackend.copyNode(this.representedObject.id); 962 968 } 963 969 } -
trunk/WebCore/inspector/front-end/inspector.js
r52415 r52440 728 728 WebInspector.documentCanCopy = function(event) 729 729 { 730 return this.currentPanel && this.currentPanel.handleCopyEvent; 730 if (this.currentPanel && this.currentPanel.handleCopyEvent) 731 event.preventDefault(); 731 732 } 732 733
Note: See TracChangeset
for help on using the changeset viewer.