Emilio Cobos Álvarez
cdde96ed6d
Bug 1874242 - Use correct writing-mode to initialize zeroed margin.
...
To avoid debug-only asserts. This doesn't change behavior because the
margin is all zeros by definition.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2024-01-12 00:49:19 +01:00
Emilio Cobos Álvarez
17cefba02e
Bug 1874242 - Centralize border/padding/content box baseline calculations. r=dshin
...
I wrote this because I thought I was going to need the padding-box stuff
for bug 221154, but I ended up not needing it. However I think it's a
bit nicer, wdyt?
Differential Revision: https://phabricator.services.mozilla.com/D198306
2024-01-11 22:25:18 +00:00
Ting-Yu Lin
f5900a49da
Bug 1835562 - Fix synthesized baseline from border-box when line is inverted. r=dholbert
...
`Baseline::SynthesizeBOffsetFromMarginBox()` and
`Baseline::SynthesizeBOffsetFromContentBox()` already handle the writing mode
with inverted lines (i.e. writing-mode: vertical-lr).
Differential Revision: https://phabricator.services.mozilla.com/D184879
2023-07-31 15:38:27 +00:00
David Shin
33761711d3
Bug 1811311 - Part 2: Extract SynthesizeBaselineBOffsetFrom* out of nsIFrame. r=emilio
...
These functions work fine as static functions, and `nsIFrame` is pretty overloaded.
Differential Revision: https://phabricator.services.mozilla.com/D167991
2023-02-23 14:53:27 +00:00