Граф коммитов

79664 Коммитов

Автор SHA1 Сообщение Дата
Robert Longson b4812f4d4b Bug 1803917 - Remove virtual keyword from override methods in SVG layout r=emilio
Depends on D163775

Differential Revision: https://phabricator.services.mozilla.com/D163776
2022-12-03 19:18:26 +00:00
Ting-Yu Lin 8f8ddadd2f Bug 1803863 Part 3 - Simplify the usages for ReflowOutput. r=emilio
- Remove unnecessary calls to ClearSize() after declaring a fresh ReflowOutput.
- Use ReflowOutput::SetSize() in nsTableFrame::FixupPositionedTableParts().

Differential Revision: https://phabricator.services.mozilla.com/D163763
2022-12-03 18:35:43 +00:00
Ting-Yu Lin 4c7c47989e Bug 1803863 Part 2 - Make TableReflowInput's member vars conform with coding style. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163762
2022-12-03 18:35:43 +00:00
Ting-Yu Lin 604fcecffe Bug 1803863 Part 1 - Simplify nsTableFrame::SetupHeaderFooterChild(). r=emilio
The helper cannot fail, so we can return the height directly instead of using an
output argument.

Differential Revision: https://phabricator.services.mozilla.com/D163761
2022-12-03 18:35:43 +00:00
Emilio Cobos Álvarez bf94680a56 Bug 1638052 - Implement Buttonborder/mark/marktext. r=geckoview-reviewers,calu,dholbert
Needs some extra test expectation updates.

Differential Revision: https://phabricator.services.mozilla.com/D157748
2022-12-03 11:19:56 +00:00
Otto Länd d5db9e3038 No bug: apply code formatting via Lando
# ignore-this-changeset
2022-12-02 23:28:10 +00:00
Emily McDonough c7d5537c7f Bug 1800546 Part 1 - Use the style given the first page name for setting default orientation when printing r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162058
2022-12-02 23:22:50 +00:00
Sandor Molnar 91267bb248 Backed out changeset 5f89b0e8bdb5 (bug 1638052) for causing wpt failures in css/css-color/deprecated-sameas-018.html 2022-12-03 00:51:39 +02:00
Dan Robertson 877e8b332d Bug 1803455 - Fire scrollend for a main thread smooth scroll. r=botond
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
2022-12-02 22:26:55 +00:00
Emilio Cobos Álvarez d52a61dd38 Bug 1638052 - Implement Buttonborder/mark/marktext. r=geckoview-reviewers,calu,dholbert
Needs some extra test expectation updates.

Differential Revision: https://phabricator.services.mozilla.com/D157748
2022-12-02 19:12:22 +00:00
Zach Hoffman 2079ccbe42 Bug 1803303 - Do not display input range tick marks that are step mismatches r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163521
2022-12-02 16:48:40 +00:00
Manuel Bucher 17df5816aa Bug 1771867 - Early Hints Phase 2 - Part 7: Pass early hint preload to image preloader r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161177
2022-12-02 16:15:55 +00:00
Manuel Bucher 01bc307305 Bug 1771867 - Early Hints Phase 2 - Part 6: Pass early hint preload to style preloader r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161176
2022-12-02 16:15:55 +00:00
Manuel Bucher 817a908c7b Bug 1771867 - Early Hints Phase 2 - Part 4: Pass early hint preload to fetch and font preloader r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161174
2022-12-02 16:15:54 +00:00
Martin Robinson abb5044ca7 Bug 1803377 - Rename the values of the `IntrinsicDirty` enum r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163607
2022-12-02 12:27:31 +00:00
Csoregi Natalia 5a260d61a4 Backed out 13 changesets (bug 1771867) for causing CanonicalBrowsingContext crashes. CLOSED TREE
Backed out changeset 120838b58449 (bug 1771867)
Backed out changeset aea7ca0bbd17 (bug 1771867)
Backed out changeset 2fe2afdee09d (bug 1771867)
Backed out changeset 8bdb1f682d22 (bug 1771867)
Backed out changeset a9f3158ed688 (bug 1771867)
Backed out changeset 1177913e1edf (bug 1771867)
Backed out changeset d33ccbbf407d (bug 1771867)
Backed out changeset 110ac12e16f5 (bug 1771867)
Backed out changeset 7f20525f5e94 (bug 1771867)
Backed out changeset b3d65b1aa872 (bug 1771867)
Backed out changeset 7cdf3cef2773 (bug 1771867)
Backed out changeset 5090eae24a5c (bug 1771867)
Backed out changeset f8a03d226c73 (bug 1771867)
2022-12-02 13:44:55 +02:00
Manuel Bucher e4a53f90d5 Bug 1771867 - Early Hints Phase 2 - Part 7: Pass early hint preload to image preloader r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161177
2022-12-02 09:45:26 +00:00
Manuel Bucher f155e62e3b Bug 1771867 - Early Hints Phase 2 - Part 6: Pass early hint preload to style preloader r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161176
2022-12-02 09:45:26 +00:00
Manuel Bucher 89f0bd5a93 Bug 1771867 - Early Hints Phase 2 - Part 4: Pass early hint preload to fetch and font preloader r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161174
2022-12-02 09:45:25 +00:00
Cristian Tuns 0d742750c8 Backed out changeset b5b515b2a259 (bug 1802238) for causing crashtest failures on 1683126.html CLOSED TREE 2022-12-01 20:53:37 -05:00
Ting-Yu Lin c04b02498d Bug 1803486 Part 4 - Remove arguments for CheckForMinSizeAuto() and rename it. r=dholbert
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
2022-12-01 22:29:56 +00:00
Ting-Yu Lin 8dc12efebe Bug 1803486 Part 3 - Add SharedFlexData::Update(). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D163547
2022-12-01 22:29:55 +00:00
Ting-Yu Lin 8f9e8be26a Bug 1803486 Part 2 - Move prevInFlow definition up in nsFlexContainerFrame::Reflow(). r=dholbert
Depends on D163545

Differential Revision: https://phabricator.services.mozilla.com/D163546
2022-12-01 22:29:55 +00:00
Ting-Yu Lin b0619f5571 Bug 1803486 Part 1 - Guard logic required only by fragmentation for flex container. r=dholbert
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
2022-12-01 22:29:54 +00:00
Emily McDonough 8df4aac0c0 Bug 1802238 - Don't allow using mixed page sizes when printing unless layout.css.allow-mixed-page-sizes is set r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D162920
2022-12-01 20:20:09 +00:00
Nika Layzell bca0a6965b Bug 1793463 - Part 4: Generate static components entries for protocols, r=necko-reviewers,xpcom-reviewers,valentin,kmag
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
2022-12-01 15:43:19 +00:00
Emilio Cobos Álvarez 1572f5554c Bug 1802957 - Allow to specify system fonts via prefs. r=jfkthame
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
2022-12-01 09:23:20 +00:00
Emilio Cobos Álvarez b1a3839211 Bug 1802957 - Remove windows-specific condition for system font font-size adjustment. r=jfkthame
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
2022-12-01 09:23:19 +00:00
Emilio Cobos Álvarez c9a0f65ceb Bug 1802957 - Remove non-standard and unused system font values. r=jfkthame
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
2022-12-01 09:23:19 +00:00
Daniel Holbert 6bd7b4ad66 Bug 1425434: Add crashtest for this no-longer-reproducible bug. (no review, crashtest-only)
Differential Revision: https://phabricator.services.mozilla.com/D163557
2022-12-01 06:33:34 +00:00
Marian-Vasile Laza 7492025127 Backed out 7 changesets (bug 1793463) for causing bustages on nsIOService.cpp. CLOSED TREE
Backed out changeset 47c3acb30de2 (bug 1793463)
Backed out changeset 71afe900eb17 (bug 1793463)
Backed out changeset d168599a269e (bug 1793463)
Backed out changeset d0f18d300818 (bug 1793463)
Backed out changeset a116e6f089f2 (bug 1793463)
Backed out changeset eba1123c8b56 (bug 1793463)
Backed out changeset 68a3eb8a3057 (bug 1793463)
2022-12-01 02:30:02 +02:00
Nika Layzell 90f7562d95 Bug 1793463 - Part 4: Generate static components entries for protocols, r=necko-reviewers,xpcom-reviewers,valentin,kmag
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
2022-11-30 18:13:42 +00:00
Martin Robinson 281ff8ade5 Bug 1791759 - Add support for `content-visibility: auto` r=emilio
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
2022-11-30 18:00:27 +00:00
Marian-Vasile Laza 76bef44509 Backed out 3 changesets (bug 1802957) for causing mochitest failures on test_unstyled_control_height.html. CLOSED TREE
Backed out changeset 649c190f6c29 (bug 1802957)
Backed out changeset 60822417a838 (bug 1802957)
Backed out changeset ffe8d999e454 (bug 1802957)
2022-12-01 01:23:08 +02:00
Emilio Cobos Álvarez 25708161b5 Bug 1802957 - Allow to specify system fonts via prefs. r=jfkthame
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
2022-11-30 16:14:27 +00:00
Emilio Cobos Álvarez 61d6ddf800 Bug 1802957 - Remove windows-specific condition for system font font-size adjustment. r=jfkthame
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
2022-11-30 16:14:27 +00:00
Emilio Cobos Álvarez 77327233d7 Bug 1802957 - Remove non-standard and unused system font values. r=jfkthame
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
2022-11-30 16:14:26 +00:00
Emilio Cobos Álvarez 5a1ba06085 Bug 1793783 - Some test and annotation fixes. r=ziran.sun
Differential Revision: https://phabricator.services.mozilla.com/D163331
2022-11-30 10:19:08 +00:00
Emilio Cobos Álvarez 154963d4ec Bug 1802533 - Make insertAnonymousContent() not reframe the whole frame tree the first time it's added to the document. r=TYLin
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
2022-11-29 18:57:50 +00:00
Tom Ritter 8a09ac74f7 Bug 1778510: Add a ShouldResistFingerprinting flag to JS RealmOptions r=jandem
This will allow us to invoke the Timer Precision callback with this
boolean.

Differential Revision: https://phabricator.services.mozilla.com/D151283
2022-11-29 13:34:13 +00:00
Connor Pearson bf9ac2fb21 Bug 1785117 - Implement CSS mod() and rem() functions. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163166
2022-11-29 13:05:39 +00:00
Emilio Cobos Álvarez af7548c6d5 Bug 1802142 - Remove layer="" attribute support from XUL elements. r=tnikkel,layout-reviewers
No remaining users.

Depends on D162851

Differential Revision: https://phabricator.services.mozilla.com/D162852
2022-11-29 04:52:33 +00:00
Botond Ballo 9232e34cb4 Bug 1802225 - Rename LayerAttributes.h to ScrollbarData.h. r=tnikkel
Since ScrollbarData is its only remaining content.

Differential Revision: https://phabricator.services.mozilla.com/D162935
2022-11-29 01:52:03 +00:00
Botond Ballo 68c71a503c Bug 1802225 - Remove Layers.{h,cpp}. r=tnikkel,geckoview-reviewers,jgilbert,media-playback-reviewers,padenot,m_kato
Where appropriate, `#include "Layers.h"` is replaced with
more specific inclusions.

Differential Revision: https://phabricator.services.mozilla.com/D162934
2022-11-29 01:52:03 +00:00
Botond Ballo 5ed0b2dc47 Bug 1802225 - Remove class Layer. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D162930
2022-11-29 01:52:01 +00:00
Zach Hoffman 6978315eec Bug 841942 - Display tick marks for <input type=range> when @list/<datalist> is used r=emilio,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D162882
2022-11-28 22:06:33 +00:00
Butkovits Atila cb853b7f77 Backed out 33 changesets (bug 1778510) for causing build bustages at nsIGlobalObject.h. CLOSED TREE
Backed out changeset f2a53c9e497c
Backed out changeset 59350ca6f3f2 (bug 1778510)
Backed out changeset abbba7e72b57 (bug 1778510)
Backed out changeset 6cf7473afae8 (bug 1778510)
Backed out changeset 74fb5fed93ea (bug 1778510)
Backed out changeset 5b5dc70cdd0a (bug 1778510)
Backed out changeset ff93191cafd2 (bug 1778510)
Backed out changeset 39cc006b610c (bug 1778510)
Backed out changeset dfaef3ad17a9 (bug 1778510)
Backed out changeset 8fbabeb8244b (bug 1778510)
Backed out changeset 45051b62e3f1 (bug 1778510)
Backed out changeset 86c0923fd81f (bug 1778510)
Backed out changeset a49c0f69d519 (bug 1778510)
Backed out changeset cfad733d4aaf (bug 1778510)
Backed out changeset df6d0fe89d5b (bug 1778510)
Backed out changeset 704db76eab17 (bug 1778510)
Backed out changeset 0651c128e369 (bug 1778510)
Backed out changeset 1e650de647c0 (bug 1778510)
Backed out changeset fa15a3572741 (bug 1778510)
Backed out changeset 4ceffd409eae (bug 1778510)
Backed out changeset 47db43142c62 (bug 1778510)
Backed out changeset ebb21153aaac (bug 1778510)
Backed out changeset a87eaaec3f9c (bug 1778510)
Backed out changeset 43ad5ee21f79 (bug 1778510)
Backed out changeset 5f20af8e1263 (bug 1778510)
Backed out changeset b78576875db0 (bug 1778510)
Backed out changeset d801fdeac90b (bug 1778510)
Backed out changeset 5af032c628c0 (bug 1778510)
Backed out changeset 86aa59de11b4 (bug 1778510)
Backed out changeset 58642357a19c (bug 1778510)
Backed out changeset c575e824e291 (bug 1778510)
Backed out changeset 32a358de4843 (bug 1778510)
Backed out changeset 40e0708c01e7 (bug 1778510)
2022-11-28 23:14:52 +02:00
Tom Ritter 9a30f46f1e Bug 1778510: Add a ShouldResistFingerprinting flag to JS RealmOptions r=jandem
This will allow us to invoke the Timer Precision callback with this
boolean.

Differential Revision: https://phabricator.services.mozilla.com/D151283
2022-11-28 18:04:05 +00:00
Marian-Vasile Laza f4d4ce0e21 Backed out changeset c428c3ad7725 (bug 1791759) for causing wpt failures on auto-012.html. CLOSED TREE 2022-11-28 13:31:05 +02:00
Martin Robinson e26b2a32b9 Bug 1791759 - Add support for `content-visibility: auto` r=emilio
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
2022-11-28 09:53:06 +00:00