Closed Bug 1580440 Opened 5 years ago Closed 5 years ago

Simplify more code around `nsPlainTextSerializer` and the current line it operates on

Categories

(Core :: DOM: Serializers, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

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

Details

Attachments

(5 files)

No description provided.

It became superfluous after CurrentLineContent::mWidth could be
removed.

Previously, this could be mistaken for the width of the character
sequence.

Depends on D45521

Assignee: nobody → mbrodesser
Attachment #9092065 - Attachment description: Bug 1580440: part 4) Rename `Indentation::mWidth` to `Indentation::mNumberOfCharacters. r=hsivonen → Bug 1580440: part 4) Rename `Indentation::mWidth` to `Indentation::mLength`. r=hsivonen
Pushed by mbrodesser@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2e86c260a7f7
part 1) Replace `CurrentLineContent` with its only member. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/912220c34234
part 2) Add enum class for header strategy. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/dd469ecd5a06
part 3) Slightly simplify `EndLine`. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/e90a48418e7a
part 4) Rename `Indentation::mWidth` to `Indentation::mLength`. r=hsivonen
https://hg.mozilla.org/integration/autoland/rev/12322ddc2a45
part 5) Execute finding upper bound for line wrapping only when needed. r=hsivonen
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: