Commit 4237ebc
committed
Web Inspector: Elements: Support copying HTML text of multiple selected DOM nodes
https://bugs.webkit.org/show_bug.cgi?id=307799
rdar://169196441
Reviewed by Devin Rousso.
The context menu options to copy HTML and HTML (formatted) are updated
to support copying the HTML text of all selected nodes from the DOM tree outline.
* Source/WebInspectorUI/UserInterface/Proxies/FormatterWorkerProxy.js:
(WI.FormatterWorkerProxy.prototype.formatJavaScript):
(WI.FormatterWorkerProxy.prototype.formatCSS):
(WI.FormatterWorkerProxy.prototype.formatHTML):
(WI.FormatterWorkerProxy.prototype.formatXML):
(WI.FormatterWorkerProxy.prototype.performAction):
* Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.prototype.populateDOMNodeContextMenu):
(WI.DOMTreeElement.prototype._copyHTMLOfSelectedDOMNodes.async then):
(WI.DOMTreeElement.prototype._copyHTMLOfSelectedDOMNodes):
Canonical link: https://commits.webkit.org/307826@main1 parent 3f7a23f commit 4237ebc
File tree
2 files changed
+51
-16
lines changed- Source/WebInspectorUI/UserInterface
- Proxies
- Views
2 files changed
+51
-16
lines changedLines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
83 | 107 | | |
84 | 108 | | |
85 | 109 | | |
| |||
Lines changed: 23 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
| 871 | + | |
875 | 872 | | |
876 | 873 | | |
877 | 874 | | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
| 875 | + | |
886 | 876 | | |
887 | 877 | | |
888 | 878 | | |
| |||
934 | 924 | | |
935 | 925 | | |
936 | 926 | | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
937 | 948 | | |
938 | 949 | | |
939 | 950 | | |
| |||
0 commit comments