[webkit-changes] [WebKit/WebKit] 2b20e3: Add the support for outputting ranges to dump-as-m...
Ryosuke Niwa
noreply at github.com
Tue Nov 1 22:00:08 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2b20e33c2fcc31b39a7e4c5295e53d96f6aceec4
https://github.com/WebKit/WebKit/commit/2b20e33c2fcc31b39a7e4c5295e53d96f6aceec4
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2022-11-01 (Tue, 01 Nov 2022)
Changed paths:
M LayoutTests/editing/selection/getRangeAt-expected.txt
M LayoutTests/editing/selection/getRangeAt.html
M LayoutTests/resources/dump-as-markup.js
Log Message:
-----------
Add the support for outputting ranges to dump-as-markup.js and use it in editing/selection/getRangeAt.html
https://bugs.webkit.org/show_bug.cgi?id=247309
Reviewed by Darin Adler.
This patch adds the support for logging DOM ranges (in addition to selection) to dump-as-markup.js
and uses it in editing/selection/getRangeAt.html.
* LayoutTests/editing/selection/getRangeAt-expected.txt:
* LayoutTests/editing/selection/getRangeAt.html:
* LayoutTests/resources/dump-as-markup.js:
(Markup.addRange): Added.
(Markup._get):
(Markup._getMarkupForTextNode):
(Markup._getSelectionAndRangeMarkersWithIdentation): Renamed from _getSelectionMarkerWithIdentation.
(Markup._getSelectionMarker):
(Markup._getRangeStartMarkers) Added.:
(Markup._getRangeEndMarkers): Added.
Canonical link: https://commits.webkit.org/256212@main
More information about the webkit-changes
mailing list