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

79017 Коммитов

Автор SHA1 Сообщение Дата
Sandor Molnar 9d7f9853a2 Backed out changeset bb1d2a4a5570 (bug 1786525) for causing build bustages in xpfe/appshell/AppWindow.cpp CLOSED TREE 2022-08-30 01:26:00 +03:00
Emilio Cobos Álvarez cf74fba975 Bug 1786525 - Don't update untransformed anchor rect when moved by move-to-rect. r=stransky
Otherwise, it changes the move-to-rect inputs, which can change the
output as well, making us move the anchor all the way to the right.

You could, I guess, consider this a mutter bug of sorts, because it
feels weird that you pass it an anchor that has been a `move-to-rect`
output and you get another rect as an output.

But also, it's kinda silly that we're doing that to begin with, so avoid
it by telling the popup frame whether it's been positioned / moved by
move-to-rect (and keeping the anchor in that case).

The reason this works on my setup without "Large text" is just dumb luck
(the front-end computes a max-height for the panel that is small enough
to fit on the screen).

Differential Revision: https://phabricator.services.mozilla.com/D155406
2022-08-29 21:47:34 +00:00
Martin Robinson ff6e1e7e64 Bug 1767262 - Lazily layout content that is hidden via `content-visibility: hidden` r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D145949
2022-08-29 14:41:36 +00:00
Eemeli Aro 24830b1cc6 Bug 1787411 - Migrate layout debugger localization to Fluent. r=fluent-reviewers,flod,emilio
The localization file is moved to `content/` to make it more clear that it's not intended to be localised.

For the same reason, no Fluent migration script is included as there are no localised strings to migrate.

Differential Revision: https://phabricator.services.mozilla.com/D155702
2022-08-29 09:59:35 +00:00
Timothy Nikkel 3849b3a6e4 Bug 1787684. Only return views with widgets from FindFloatingViewContaining. r=emilio
The code that bug 1754436 deleted checked to make sure there was a widget for the returned view, but it looks like it's possible in some edge cases to have an open popup that doesn't have a widget (most likely just for a split second). We need a widget to dispatch the event, and if it doesn't have a widget it's not visible so no point in touching it at all anyways.

Differential Revision: https://phabricator.services.mozilla.com/D155819
2022-08-29 09:58:11 +00:00
Hiroyuki Ikezoe 98b7c503fa Bug 1650351 - A reftest for bug 1552923. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D155665
2022-08-29 02:20:38 +00:00
Cristian Tuns d426f1ad6b Backed out changeset f2d741f0c573 (bug 1650351) for causing reftest failures on replace-with-new-positive-delay-animation.html CLOSED TREE 2022-08-28 21:06:12 -04:00
Glenn Watson 4e87a61ffb Bug 1787089 - Fix interactions between root level mix-blend containers and backdrop-filter r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155536
2022-08-29 00:30:24 +00:00
Hiroyuki Ikezoe 58e38455f4 Bug 1650351 - A reftest for bug 1552923. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D155665
2022-08-28 20:59:34 +00:00
Timothy Nikkel 747ee49f37 Bug 1747277. Handle an unusual case when starting animated images in the refresh driver. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D155464
2022-08-27 22:59:10 +00:00
Timothy Nikkel 671ddf230f Bug 1747277. Skip some code with starting animated images in the refresh driver when we don't need it. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D155463
2022-08-27 22:59:10 +00:00
Frederic Wang ecf2b4d3d6 Bug 1784014 - Remove MathML preference mfrac_bevelled_attribute. r=emilio
- remove flag and corresponding warning/counter.
- remove attribute from parsers, but keep the atom since it's
  used by TreeSanitizer.
- remove tests for mfrac@bevelled, there is a WPT test to check it's
  not supported.
- layout/mathml/tests/test_bug975681.html is removed, its tests are
  currently (wrongly) all disabled when the flag is off and equivalent
  tests for attributes other than bevelled exist in WPT.

Differential Revision: https://phabricator.services.mozilla.com/D154199
2022-08-27 07:22:22 +00:00
Cristian Tuns 24652e5425 Backed out changeset e29b0fbf77f1 (bug 1786513) for causing mochitest failures on /browser_unified_extensions.js CLOSED TREE 2022-08-26 11:11:46 -04:00
Frederic Wang 065a295a1b Bug 1784009 - Remove MathML preference mfrac_linethickness_names. r=emilio
- Remove preference, warning and counter.
- Remove tests checking support for it, or replacing with
  equivalent 50% and 300% values.

Differential Revision: https://phabricator.services.mozilla.com/D154198
2022-08-26 14:21:47 +00:00
Emilio Cobos Álvarez 7c34c8de9a Bug 1786513 - Make SimpleResizeReflow not flush by default. r=jfkthame,layout-reviewers
Only GeckoMVMContext really needs the flush, to measure scrolled height
afterwards. Do that explicitly.

This shouldn't change behavior, for the most part; there was a preload
test that relied on the flush when changing DPI to start a run really
clean, but other than that this looks green on try.

Should at best be neutral (just code clean-up), or be a performance
improvement.

In a follow-up, we can possibly remove the DelayedResize code from the
view manager, though I need to think how to possibly coalesce the MVM
reflows, so let's not do that yet.

Differential Revision: https://phabricator.services.mozilla.com/D155385
2022-08-26 12:58:12 +00:00
Frederic Wang 501296082e Bug 1784003 - Remove MathML preference deprecated_alignment_attributes. r=emilio
- Remove code for align/denumalign/numalign attributes.
- Remove tests checking support for them.
- Remove warning message and counter.
- numalign/denomalign atoms are not removed, since they
  are still used by nsTreeSanitizer.

Differential Revision: https://phabricator.services.mozilla.com/D154197
2022-08-26 12:31:16 +00:00
Emilio Cobos Álvarez 44438f746a Bug 1787173 - Improve CSS OM for CSSContainerRule. r=nchevobbe
This implements https://github.com/w3c/csswg-drafts/pull/7293, pending a
spec resolution, so landing test as tentative for now, but the change
makes sense.

Differential Revision: https://phabricator.services.mozilla.com/D155602
2022-08-26 10:31:38 +00:00
Emilio Cobos Álvarez 6b0df9b6e0 Bug 1787088 - Don't reframe for overflow changes in text controls. r=TYLin
These frames don't honor overflow in any meaningful way, except for
textarea, where overflow inherits into its editing root.

That style change however should be handled on its own by reflowing
(thus avoiding the reframe).

We need to fix GetDesiredScrollbarSizes, which wasn't accounting for
having scrollbars + overflow: hidden / scrollbar-width: none. Reftests
caught that.

Differential Revision: https://phabricator.services.mozilla.com/D155535
2022-08-26 10:18:18 +00:00
Ting-Yu Lin f030093058 Bug 1786610 - Use auto main-size workaround for replaced elements without aspect-ratio when computing flex base size. r=dholbert
This bug is regressed by Bug 1686603 Part 4 [1]. When the used flex-basis is
'content', the old code computes flex base size by using 'auto' as the main size
in `nsContainerFrame::ComputeSizeWithIntrinsicDimensions()`. The method is for
replaced elements to compute sizes, even if the element has no preferred
aspect-ratio such as an `<svg>` without viewBox nor aspect-ratio property.

However, Bug 1686603 Part 4 made replaced elements without preferred
aspect-ratio uses 'max-content' when computing flex base size. Unfortunately, we
only trigger the replaced elements intrinsic sizing via 'auto' but not via
'max-content', so this patch restores the behavior via emplacing 'auto' in
`styleFlexBaseSize`.

[1] https://phabricator.services.mozilla.com/D101795

Differential Revision: https://phabricator.services.mozilla.com/D155628
2022-08-26 07:20:04 +00:00
Hiroyuki Ikezoe 4917d58c7b Bug 1786668 - Add a test case that MobileViewportManager is properly updated when browser window moves from a HiDPI monitor to normal one. r=tnikkel
Unfortunately this test doesn't run as expected on our CI since macs on our CI
are running normal DPI mode.

I tested this test works properly on my macbook, it fails without the fix in the
previous commit and it passes with the fix.

Differential Revision: https://phabricator.services.mozilla.com/D153688
2022-08-26 04:44:55 +00:00
Jonathan Kew ddf06010ee Bug 1786796 - Reftest for gradient when color stop range collapses to zero. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155504
2022-08-25 22:03:04 +00:00
Jonathan Kew ac55092eab Bug 1786050 - Add a reftest. r=gfx-reviewers,lsalzman
The glyphs "b" and "c" here have radial gradients with non-[0..1] color stop ranges,
and are compared against versions with equivalent normalized gradients.

Depends on D155080

Differential Revision: https://phabricator.services.mozilla.com/D155472
2022-08-25 22:03:04 +00:00
Butkovits Atila 101b594cdb Backed out 4 changesets (bug 1786050, bug 1786796) for causing reftest failure at font-error-404-2.html. CLOSED TREE
Backed out changeset 97fc4d3e5911 (bug 1786796)
Backed out changeset c80a7f0aee8e (bug 1786796)
Backed out changeset 23314917bc22 (bug 1786050)
Backed out changeset 16d1b659b291 (bug 1786050)
2022-08-25 20:35:09 +03:00
Jonathan Kew 5bcdc7cf69 Bug 1786493 - Implement CSS @supports font-format(...) and font-tech(...) functions. r=emilio
These are gated by the same layout.css.font-tech.enabled pref as the
closely-related `tech()` function for the @font-face src descriptor;
once the spec questions are settled, we should enable them all together.

Differential Revision: https://phabricator.services.mozilla.com/D155359
2022-08-25 12:19:21 +00:00
Marian-Vasile Laza 07de1f7c1b Backed out 2 changesets (bug 1786493) for causing build bustages. CLOSED TREE
Backed out changeset 077219c44704 (bug 1786493)
Backed out changeset b1b0464f9bed (bug 1786493)
2022-08-25 14:26:59 +03:00
Jonathan Kew 4642b812a4 Bug 1786493 - Implement CSS @supports font-format(...) and font-tech(...) functions. r=emilio
These are gated by the same layout.css.font-tech.enabled pref as the
closely-related `tech()` function for the @font-face src descriptor;
once the spec questions are settled, we should enable them all together.

Differential Revision: https://phabricator.services.mozilla.com/D155359
2022-08-25 11:09:10 +00:00
Jonathan Kew 2b85b88c98 Bug 1786796 - Reftest for gradient when color stop range collapses to zero. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155504
2022-08-25 09:46:59 +00:00
Jonathan Kew fc03470c21 Bug 1786050 - Add a reftest. r=gfx-reviewers,lsalzman
The glyphs "b" and "c" here have radial gradients with non-[0..1] color stop ranges,
and are compared against versions with equivalent normalized gradients.

Depends on D155080

Differential Revision: https://phabricator.services.mozilla.com/D155472
2022-08-25 09:46:59 +00:00
Frederic Wang 79e3532d7f Bug 1783998 - Remove MathML preference script_shift_attributes. r=emilio
- Remove script_shift_attributes preference and related test, warning
  message and parsing.
- Do not remove subscriptshift/supscripshift atoms, since they are
  still needed for nsTreeSanitizer.

Differential Revision: https://phabricator.services.mozilla.com/D154195
2022-08-25 09:03:58 +00:00
Sandor Molnar f6c5f48454 Backed out 4 changesets (bug 1786050, bug 1786796) for causing reftest failures. CLOSED TREE
Backed out changeset 9c09be52726f (bug 1786796)
Backed out changeset fc292ca682cf (bug 1786796)
Backed out changeset 7b0739cd3f8f (bug 1786050)
Backed out changeset bddde4931caa (bug 1786050)
2022-08-25 06:21:23 +03:00
Adam Vandolder 867e24f2f7 Bug 1748975 - Don't trigger click event on untrusted keypresses for buttons and summaries. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D154942
2022-08-25 01:25:58 +00:00
Jonathan Kew 4c91f91eba Bug 1786796 - Reftest for gradient when color stop range collapses to zero. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155504
2022-08-24 20:19:07 +00:00
Jonathan Kew d4597e16fd Bug 1786050 - Add a reftest. r=gfx-reviewers,lsalzman
The glyphs "b" and "c" here have radial gradients with non-[0..1] color stop ranges,
and are compared against versions with equivalent normalized gradients.

Depends on D155080

Differential Revision: https://phabricator.services.mozilla.com/D155472
2022-08-24 20:19:07 +00:00
Sandor Molnar a4f3a0f44b Backed out changeset f67c8298a104 (bug 1767262) for causing wpt assertion failures in layout/base/PresShell.cpp CLOSED TREE 2022-08-24 20:39:45 +03:00
Jonathan Kew c839e82be8 Bug 1786804 followup - ensure the pref is set for reftest that requires it. r=emilio
We need to include this, otherwise the test will start failing on beta.

Differential Revision: https://phabricator.services.mozilla.com/D155467
2022-08-24 14:56:46 +00:00
David Shin 44de935802 Bug 1786628 - Add Test for Scrolling to Selection Location in Overflowing Element with `overflow-clip-box`. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D155416
2022-08-24 14:50:32 +00:00
Martin Robinson 9d8878f0d0 Bug 1767262 - Lazily layout content that is hidden via `content-visibility: hidden` r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D145949
2022-08-24 13:30:55 +00:00
Emilio Cobos Álvarez 00f06ad611 Bug 1786515 - Remove dead nsXULPopupManager::EnableRollup. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D155386
2022-08-23 21:54:25 +00:00
Nathan LaPre 0a26bbd880 Bug 1776928 - avoid backplating text that is entirely whitespace in HCM, r=morgan
Some sites use text content that consists entirely of whitespace, which can
lead to unexpected rendering in High Contrast Mode - namely, backplating of
invisible characters. This commit adds logic that detects text nodes consisting
entirely of whitespace and reports their text area as 0. This commit also adds
a test for the behavior, and modifies an existing test to reflect the new
behavior.

Differential Revision: https://phabricator.services.mozilla.com/D155248
2022-08-23 19:41:59 +00:00
David Shin 13d8c567da Bug 1786353 - Use logical sides when calculating table cell baseline. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D155396
2022-08-23 17:11:44 +00:00
Butkovits Atila 5c5ef28ffa Backed out changeset 5a4a5749f8dc (bug 1767262) for causing wpt failures. 2022-08-23 18:33:04 +03:00
Martin Robinson 4d8325d138 Bug 1767262 - Lazily layout content that is hidden via `content-visibility: hidden` r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D145949
2022-08-23 14:16:10 +00:00
Emilio Cobos Álvarez 352d47e585 Bug 1786214 - Remove UseAutoBSize flag. r=TYLin
Use a more precise, grid-specific flag to avoid applying grid stretching
etc, and pass an unconstrained block size instead for baseline alignment
measuring, which will cause us to interpret relative sizes as auto.

This shouldn't cause any behavior change, but is a prerequisite
necessary for bug 1609403 (where we don't always want definite sizes
being ignored in measuring reflows for baseline alignment). It's also a
bit clearer, IMO.

Differential Revision: https://phabricator.services.mozilla.com/D155178
2022-08-23 09:17:38 +00:00
Ting-Yu Lin 8839aff8b8 Bug 1463977 Part 3 - Ensure {I|B}Size set in SetComputed{I|B}Size is non-negative, and downgrade the assertion. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D155322
2022-08-23 05:12:00 +00:00
Ting-Yu Lin 95fdc2379b Bug 1463977 Part 2 - Call SetComputedBSizeWithoutResettingResizeFlags() in SetComputedBSize(). r=dholbert
This is a preparation for the next part.

Differential Revision: https://phabricator.services.mozilla.com/D155321
2022-08-23 05:11:59 +00:00
Ting-Yu Lin 611db0b345 Bug 1463977 Part 1 - Mark SizeComputationInput::mFrame const, and assert its validity. r=dholbert
mFrame is public and used throughout the layout, but it shouldn't be modified
post constructor.

Differential Revision: https://phabricator.services.mozilla.com/D155320
2022-08-23 05:11:59 +00:00
Emilio Cobos Álvarez d6c13d0b23 Bug 1785903 - Use inset rect as the border area to compute shape radii. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D155072
2022-08-22 22:15:24 +00:00
Boris Chiou 3897893bd1 Bug 1694741 - Part 6: Map width/height attributes to the style of img elements. r=emilio
This patch will use the width/height attributes from <source> to override
width/height/aspect-ratio CSS property values of <img> elements.

So basically, we need to introduce an extra nsMappedAttribtue member in
HTMLSourceElement (and it only stores width and height attributes).
And then we use it as an extra declarations (which are generated by
Gecko_GetExtraContentStyleDeclarations()) so we can override the
declarations created from presentation attributes of <img>.

Besides, we need to make sure <img> elements get restyled in the
following cases:
1. width/height attributes is changed in <source> elements
2. <source> is inserted as a <picture>'s child
3. <source> is removed from the child list of <picture>
4. <img> is inserted as a <picture>'s child
5. <img> is removed from the child list of <picture>

We make the responsive source synchronously get updated in the previous patch,
so now we can just restyle the image when updating its responsive source.

Note: We fix the reflection of percentages for width/height attributes in
the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D152586
2022-08-22 20:18:39 +00:00
Boris Chiou 0777a55c37 Bug 1694741 - Part 3: Add NS_IMPL_FROMNODE_HELPER() for HTMLTableCellElement. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D154328
2022-08-22 20:18:38 +00:00
Emilio Cobos Álvarez 9df7e6bca8 Bug 1782596 - Propagate preferred color-scheme to non-top frames. r=jwatt
The ColorSchemeMode::Preferred change doesn't make a difference (that
is, always use the preferred one), since when we only propagate from
top's embedder the embedder is chrome, which always has the preferred
color-scheme.

Differential Revision: https://phabricator.services.mozilla.com/D154931
2022-08-22 14:23:09 +00:00