Minor cleanup in size computation functions
Categories
(Core :: Layout, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1900522 Part 2 - Swap the arguments of StyleRect::Get() that gets T from logical side. r?#layout
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
These patches are discovered while reading our size computation APIs. See the patches for details.
Assignee | ||
Updated•1 month ago
|
Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Assignee | ||
Comment 2•1 month ago
|
||
This patch move WritingMode
to the second argument, for the consistency with
the design of its own APIs like StyleRect::Start(LogicalAxis, WritingMode)
,
and logical classes such as LogicalMargin::Side(LogicalSide, WritingMode)
.
Assignee | ||
Comment 3•1 month ago
|
||
We don't need to manually generate ServoStyleConsts.h
. Update the warning to
avoid confusion.
Assignee | ||
Comment 4•1 month ago
|
||
ComputeBSizeDependentValue()
is the same as ComputeCBDependentValue()
except
for the assertion, and existing callers of it are passing containing block's
block-size, which indicates that calling ComputeCBDependentValue()
might make
more sense.
Assignee | ||
Comment 5•1 month ago
|
||
Assignee | ||
Comment 6•1 month ago
|
||
This removed one is just forwarding the call to nsIFrame, and used internally
within ReflowInput.
While I'm here, rename local variables inside*
and outside*
to make them
clearer.
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/062103f7392c Part 1 - Use IsIntrinsicKeyword() to implement HasIntrinsicKeywordForBSize(). r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/2e310084e774 Part 2 - Swap the arguments of StyleRect::Get() that gets T from logical side. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/0827429f288b Part 3 - Update autogen_warning in servo/ports/geckolib/cbindgen.toml. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/253f4ea10489 Part 4 - Remove nsLayoutUtils::ComputeBSizeDependentValue(). r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/065a346ac916 Part 5 - Simplify some ComputeCBDependentValue() usages. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/dfaa55b2c652 Part 6 - Remove a SizeComputationInput::ComputeISizeValue() variant. r=layout-reviewers,emilio
Comment 8•1 month ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/062103f7392c
https://hg.mozilla.org/mozilla-central/rev/2e310084e774
https://hg.mozilla.org/mozilla-central/rev/0827429f288b
https://hg.mozilla.org/mozilla-central/rev/253f4ea10489
https://hg.mozilla.org/mozilla-central/rev/065a346ac916
https://hg.mozilla.org/mozilla-central/rev/dfaa55b2c652
Description
•