Add WritingMode argument to SizeComputationInput's margin, border/padding, and padding getters
Categories
(Core :: Layout, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(8 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 |
A follow-up for bug 1674450 comment 9.
Add WritingMode
argument to ComputedLogicalMargin()
, ComputedLogicalBorderPadding()
, and ComputedLogicalPadding()
, and adapt all the callers. https://searchfox.org/mozilla-central/rev/d866b96d74ec2a63f09ee418f048d23f4fd379a2/layout/generic/ReflowInput.h#132-140
With that, ComputedLogicalMargin().ConvertTo(parentWM, childWM)
can be written as just ComputedLogicalMargin(parentWM)
, similar to the nsIFrame
APIs GetLogicalUsedMargin(WritingMode).
Assignee | ||
Comment 1•4 years ago
|
||
It's straightforward to determine which writing mode is required to pass
to ComputedLogicalMargin() by looking at any subsequent method called on
the margin.
For example, if we see
ComputedLogicalMargin().BStartEnd(wm);
the writing mode needed to pass to ComputedLogicalMargin()
is wm
.
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
This patch is similar to Part 1, but for ComputedLogicalBorderPadding().
Depends on D95661
Assignee | ||
Comment 3•4 years ago
|
||
This patch is similar to Part 1, but for ComputedLogicalPadding(). r?jfkthame
Depends on D95662
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D95663
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D95664
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D95665
Assignee | ||
Comment 7•4 years ago
|
||
When referring to WritingMode and LogicalMargin, most of the existing
users in SizeComputationInput are using mozilla::
prefix, so let's
remove the alias.
Depends on D95666
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D95667
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b43f8212b0e4
https://hg.mozilla.org/mozilla-central/rev/ad537634af0d
https://hg.mozilla.org/mozilla-central/rev/ccf29bb17bcc
https://hg.mozilla.org/mozilla-central/rev/b825a3eca0c8
https://hg.mozilla.org/mozilla-central/rev/77f2dc7fe502
https://hg.mozilla.org/mozilla-central/rev/fb89da07ea44
https://hg.mozilla.org/mozilla-central/rev/a4492eeb3fa7
https://hg.mozilla.org/mozilla-central/rev/d8ccdc36c309
Description
•