Closed Bug 1877850 Opened 8 months ago Closed 8 months ago

Convert callers of ReflowInput physical size accessors to use logical ones

Categories

(Core :: Layout: Block and Inline, task)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

ReflowInput's computed sizes and border&padding are stored in logical
coordinates, so accessing the physical version is slower [1]. This patch
converts as many callers as possible to use logical coordinates.

This patch doesn't change behavior.

[1] For example, accessing ComputedWidth() and ComputedHeight() needs two
IsVertical() check, but `GetPhysicalSize() only needs one.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

This patch doesn't change behavior.

[1] For example, accessing ComputedWidth() and ComputedHeight() needs two
IsVertical() check, but `GetPhysicalSize() only needs one.

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/05c1c99a6ed1 Part 1 - Convert callers of ReflowInput physical size accessors to use logical ones. r=dholbert https://hg.mozilla.org/integration/autoland/rev/085a323ab16c Part 2 - Rewrite ComputedSizeAsContainerIfConstrained() using logical coordinates, and use it in BlockReflowState. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: