Closed Bug 1643333 Opened 4 years ago Closed 4 years ago

Factor code relevant for serializing nodes out from `nsDocumentEncoder`

Categories

(Core :: DOM: Serializers, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)

References

Details

Attachments

(7 files)

Simplifies reasoning about nsDocumentEncoder, which has too many responsibilities.

Will help to factor out functionality of serializing a node.

Depends on D78309

In separate reviews, SerializeNodeStart etc. will be moved to it.

Depends on D78310

nsDocumentEncoder has too many responsibilities; this change
simplifies reasoning about it.

Depends on D78311

Pushed by mbrodesser@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3578040c336
part 1) const qualify argument of `IsInvisibleNodeAndShouldBeSkipped`. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/2c59ceb99ec4
part 2) Document `nsDocumentEncoder::mFlags`. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/9193efaf7d9d
part 3) Change `IsInvisibleNodeAndShouldBeSkipped` to static method. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/a617ea1772f9
part 4) Add `NodeSerializer`. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/22656842192c
part 5) Move `SerializeNodeStart` and `SerializeNodeEnd` to `NodeSerializer`. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/c26ac7e8d49f
part 6) Move `SerializeToStringIterative` to `NodeSerializer`. r=masayuki
https://hg.mozilla.org/integration/autoland/rev/5480197f2849
part 7) Move `SerializeToStringRecursive` to `NodeSerializer`. r=masayuki
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: