- Remove unnecessary calls to ClearSize() after declaring a fresh ReflowOutput.
- Use ReflowOutput::SetSize() in nsTableFrame::FixupPositionedTableParts().
Differential Revision: https://phabricator.services.mozilla.com/D163763
Use the original start position of main thread smooth scrolls to determine
if the scroll position changed on scroll complete, and fire a scrollend
event if it did.
Differential Revision: https://phabricator.services.mozilla.com/D163550
The arguments are removed for the following reasons:
1) We might need to call it in future patches when ReflowInput is not available.
Although getting the cached style struct pointers from ReflowInput is cheaper,
but getting them from the frame directly is not expensive nowadays.
2) We can initialize mNeedsMinSizeAutoResolution directly in the member
initializer list.
Also, simplify its implementation and comments.
Differential Revision: https://phabricator.services.mozilla.com/D163548
This separation makes hacking fragmentation code easier, and readers who are not
interested in flex container fragmentation can skip it.
Differential Revision: https://phabricator.services.mozilla.com/D163545
This adds a new set of options to static components.conf files to allow
specifying the protocol flags and default ports of a protocol handler, and
generates a separate table just for this purpose.
This will be used in the next part as part of replacing the existing protocol
handler lookup infrastructure.
Differential Revision: https://phabricator.services.mozilla.com/D162803
Much like we allow to do so with colors and ints/floats.
Read a string pref for the font name, and a few float/bools for
size/weight/italic, which is what our LookAndFeel back-end supports.
Depends on D163270
Differential Revision: https://phabricator.services.mozilla.com/D163271
Now that the non-native theme is everywhere, let's do this consistently
across platforms.
Note that these fonts aren't used for XUL anyways, so this shouldn't
change behavior in practice.
Depends on D163269
Differential Revision: https://phabricator.services.mozilla.com/D163270
And hide internal but used values. System fonts are not exposed in the
computed style so this should be fine.
If we need the old values for some obscure reason, it's trivial to alias
them to e.g., menu or so.
Differential Revision: https://phabricator.services.mozilla.com/D163269
This adds a new set of options to static components.conf files to allow
specifying the protocol flags and default ports of a protocol handler, and
generates a separate table just for this purpose.
This will be used in the next part as part of replacing the existing protocol
handler lookup infrastructure.
Differential Revision: https://phabricator.services.mozilla.com/D162803
This change adds support for `content-visibilty: auto` as well as
showing and hiding content based on the relevancy of the content as
defined in the specification. Changes to relevancy are handled by
triggering updates in a set of `content-visibility: auto` frames stored
in PresShell at the appropriate time in the document lifecycle.
Some tests are now failing due to this feature exposing the failures,
but they will be fixed in later changes.
This change is a reland of an earlier version that properly updates
intrinsic sizes and triggers an update of remembered size for the
purposes of contain-intrinsic-size when content relevancy changes.
Co-authored-by: Jihye Hong <jihye@igalia.com>
Differential Revision: https://phabricator.services.mozilla.com/D159693
Much like we allow to do so with colors and ints/floats.
Read a string pref for the font name, and a few float/bools for
size/weight/italic, which is what our LookAndFeel back-end supports.
Depends on D163270
Differential Revision: https://phabricator.services.mozilla.com/D163271
Now that the non-native theme is everywhere, let's do this consistently
across platforms.
Note that these fonts aren't used for XUL anyways, so this shouldn't
change behavior in practice.
Depends on D163269
Differential Revision: https://phabricator.services.mozilla.com/D163270
And hide internal but used values. System fonts are not exposed in the
computed style so this should be fine.
If we need the old values for some obscure reason, it's trivial to alias
them to e.g., menu or so.
Differential Revision: https://phabricator.services.mozilla.com/D163269
Given the STR I was almost close to WONTFIX this, but it seems worth
fixing regardless, if only because this also happens in content pages
and it's something I've been bitten by before (try to debug a layout
bug, inspect the element, then realize the bug is "fixed" because we
reframed everything).
This is mostly a performance optimization, so it doesn't seem super-easy
to test, particularly since you can't quite just change styles of NAC
easily...
I'll try to remove that block altogether in a follow-up.
Differential Revision: https://phabricator.services.mozilla.com/D163151
This change adds support for `content-visibilty: auto` as well as
showing and hiding content based on the relevancy of the content as
defined in the specification. Changes to relevancy are handled by
triggering updates in a set of `content-visibility: auto` frames stored
in PresShell at the appropriate time in the document lifecycle.
Some tests are now failing due to this feature exposing the failures,
but they will be fixed in later changes.
Co-authored-by: Jihye Hong <jihye@igalia.com>
Differential Revision: https://phabricator.services.mozilla.com/D159693