Closed Bug 1643721 Opened 4 years ago Closed 4 years ago

Factor code relevant for serializing ranges out from `nsDocumentEncoder`

Categories

(Core :: DOM: Selection, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

People

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

References

Details

Attachments

(16 files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
No description provided.
Severity: -- → S4

Preparatory step to move SerializeRangeNodes to RangeSerializer.

Depends on D79110

Preparatory step to move SerializeRangeContextStart (End) to it.

Depends on D79113

Preparation for moving SerializeRangeToString to RangeSerializer.

Reduces code duplication.

Depends on D79421

Keywords: leave-open
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9be7ba2a8d44 part 1) Factor range serialization state from `nsDocumentEncoder` out to `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/e85cc7ee3711 part 2) Add `RangeNodeContext` to `nsDocumentEncoder` and `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/c58faa33dff8 part 3) Factor initializing `mRangeSerializer`'s members out to `RangeSerializer::Initialize`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/e6f4d89a3068 part 4) Move `SerializeRangeNodes` to `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/8248d22c153a part 5) Factor `RangeContextSerializer` out from `nsDocumentEncoder`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/3ddc0b3e5eb1 part 6) Move `SerializeRangeContextStart` (End) to `RangeContextSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/539f59654c62 part 7) Move `mCommonInclusiveAncestors` to `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/302c4255a4f7 part 8) Move `SerializeRangeToString` to `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/3df6cedb80c3 part 9) Remove redundant `mRangeNodeContext` from `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/d82e23067320 part 10) Privatize most members of `RangeSerializer`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/73cb6ceaac11 part 11) Privatize member of `RangeContextSerializer`. r=masayuki
Attachment #9156188 - Attachment description: Bug 1643721: part 12) Hide some details of `SerializeRangeToString`in `HasInvisibleParentAndShouldBeSkipped`. r=masayuki → Bug 1643721: part 12) Hide some details of `SerializeRangeToString` in `HasInvisibleParentAndShouldBeSkipped`. r=masayuki
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8bdc23677ca6 part 12) Hide some details of `SerializeRangeToString` in `HasInvisibleParentAndShouldBeSkipped`. r=masayuki https://hg.mozilla.org/integration/autoland/rev/bbcbf5721a9e part 13) Factor serializing a text node out. r=masayuki
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98914a797968 part 14) Change `SerializeToStringRecursive`'s `aDontSerializeRoot` to `enum class SerializeRoot` and drop negation. r=masayuki https://hg.mozilla.org/integration/autoland/rev/ff293d87130e part 15) Add assertion to `SerializeRangeNodes`. r=masayuki
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d5f6fbef8d4 part 16) Factor `SerializeChildrenOfContent` functionality out. r=masayuki
Keywords: leave-open

Is this bug should be closed?

Flags: needinfo?(mbrodesser)

We can close this ticket and open a new one when needed. The submitted work is self-contained.

Flags: needinfo?(mbrodesser)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: