Closed Bug 1916026 Opened 1 year ago Closed 1 year ago

Minor improvement to WritingModes.h

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(2 files)

See the patches for details.

Rewrite PhysicalAxis() to avoid bit manipulation and remove the dependency on
the numeric values of PhysicalAxis and LogicalAxis enums.

This doesn't change behavior.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

Many classes contain a WritingMode member variable that may not be initialized
immediately upon construction but rather during later computations. Therefore,
having a default constructor providing a default writing mode remains necessary.

WritingMode::SetDirectionFromBidiLevel()'s input argument was changed from
uint8_t to a helper class in
https://hg.mozilla.org/mozilla-central/rev/20965e0af9b3f8cc2689be5ba6ae323cb9af4436

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/98e0ae8f9812 Part 1 - Improve the readability of WritingMode::PhysicalAxis(). r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/2ffd311ab17c Part 2 - Revise outdated comments in WritingModes.h. r=layout-reviewers,jfkthame

Backed out for causing bustage on WritingModes.h

Backout link

Push with failures

Failure log

Flags: needinfo?(aethanyc)
Flags: needinfo?(aethanyc)
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7fbeccad4edc Part 1 - Improve the readability of WritingMode::PhysicalAxis(). r=layout-reviewers,jfkthame https://hg.mozilla.org/integration/autoland/rev/fb64cdaf7a5c Part 2 - Revise outdated comments in WritingModes.h. r=layout-reviewers,jfkthame
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: