Convert callers of ReflowInput physical size accessors to use logical ones
Categories
(Core :: Layout: Block and Inline, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
For usage like nsSize(ComputedWidth(), ComputedHeight())
[1], it requires two IsVertical()
checks [2], but GetPhysicalSize()
only needs one.
[1] https://searchfox.org/mozilla-central/rev/6e2e933cd6b7931e1d4e8bd8af8daa9788b27760/layout/generic/ReflowInput.h#402
[2] https://searchfox.org/mozilla-central/rev/6e2e933cd6b7931e1d4e8bd8af8daa9788b27760/layout/generic/WritingModes.h#960,964
[3] https://searchfox.org/mozilla-central/rev/6e2e933cd6b7931e1d4e8bd8af8daa9788b27760/layout/generic/WritingModes.h#989-990
Assignee | ||
Comment 1•8 months ago
|
||
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.
Updated•8 months ago
|
Assignee | ||
Comment 2•8 months ago
|
||
This patch doesn't change behavior.
[1] For example, accessing ComputedWidth()
and ComputedHeight()
needs two
IsVertical()
check, but `GetPhysicalSize() only needs one.
Comment 4•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/05c1c99a6ed1
https://hg.mozilla.org/mozilla-central/rev/085a323ab16c
Description
•