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

80562 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez fa37578f52 Bug 1828413 - Use more non-native rendering of menus. r=stransky
This makes our menus closer to GTK4, and depends less on the native menu
rendering etc. Thunderbird already does this to some extent.

Leave the old code behind a pref for now (just in case). Also fix some
code in nsNativeTheme::GetContentState (fixes rendering of radio menu
items).

Differential Revision: https://phabricator.services.mozilla.com/D175664
2023-04-20 11:42:44 +00:00
Timothy Nikkel e30b33b2a7 Bug 1827337. Put overlay scrollbars only above content they scroll. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D175352
2023-04-20 06:21:15 +00:00
Ting-Yu Lin 05e90a8a3e Bug 1827582 - Fix flex container's reflow status when unbreakable flex items consume all content block-size in current fragment. r=dholbert
The bug occurs in `PopulateReflowOutput()` when we change the reflow status of
an auto-height flex container to "complete" because unbreakable tall flex items
have consumed all the theoretical/unfragmented content block-size. Later in
`PopulateReflowOutput()`, we'll change the reflow status [1] to "overflow
incomplete," which cause the next-in-flow to become an overflow container.

It is possible that the container's block-size will grow due to pushed items.
However, `nsSplittableFrame::CalcAndCacheConsumedBSize()` [2] doesn't consider
the overflow container's block-size, so we never correctly consume the extra
block-size growth in later fragments due to pushed items. We end up creating
infinite columns.

[1] https://searchfox.org/mozilla-central/rev/54c533e94ae786056a43231f230c7d9b0773cb80/layout/generic/nsFlexContainerFrame.cpp#5623-5626
[2] https://searchfox.org/mozilla-central/rev/54c533e94ae786056a43231f230c7d9b0773cb80/layout/generic/nsSplittableFrame.cpp#201-204

Differential Revision: https://phabricator.services.mozilla.com/D175543
2023-04-19 21:53:24 +00:00
Hiroyuki Ikezoe 80d9a64924 Bug 1704631 - Expand the size for `background-attachmend: fixed` image. r=botond,tnikkel,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D169001
2023-04-19 21:08:53 +00:00
Glenn Watson 9e484ae071 Bug 1828799 - Fix incorrect fuzziness for tier 2 android 456219-1c.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175942
2023-04-19 20:25:55 +00:00
Emilio Cobos Álvarez 534aba218e Bug 1828772 - Don't use move-to-rect if layout has flipped our popup. r=stransky
As move-to-rect wouldn't account for those constraints.

Differential Revision: https://phabricator.services.mozilla.com/D175861
2023-04-19 13:00:16 +00:00
Timothy Nikkel 835b48d090 Bug 1828829. Fix unused warning when enabling DEBUG_FRAME_DUMP in opt builds. r=emilio
This becomes a fatal compile error in automation (ie try).

Differential Revision: https://phabricator.services.mozilla.com/D175844
2023-04-19 08:29:26 +00:00
Glenn Watson 8d496ec4ff Bug 1828799 - Update tier fuzziness for 456219-1c.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175836
2023-04-19 04:20:19 +00:00
Glenn Watson 5bed77b1b7 Bug 1828798 - Update tier 2 fuzziness for 456219-1a.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175835
2023-04-19 04:20:19 +00:00
Iulian Moraru ab6b26a454 Backed out changeset a9ef9922a38b (bug 1825709) for causing wr failures on input-date-content-size.html. 2023-04-19 02:23:18 +03:00
Glenn Watson a376e0dcbf Bug 1828571 - Update some perma tier 2 reftest fuzziness r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175799
2023-04-18 20:40:28 +00:00
Emilio Cobos Álvarez 8ef888bfb2 Bug 1825709 - Make nsDateTimeControlFrame inherit from nsTextControlFrame. r=dshin
Seems like this should be doable, and would avoid mistakes like this in
the future.

Differential Revision: https://phabricator.services.mozilla.com/D175748
2023-04-18 15:28:11 +00:00
Emilio Cobos Álvarez 6043acc3ad Bug 1825709 - Remove DEBUG-only override of nsTextControlFrame::MarkIntrinsicISizesDirty. r=dshin
This seems to be here since nsTextControlFrame has a meaningful
baseline, but it doesn't make much sense to me:

 * Baseline is a block axis, not inline axis measurement.
 * It doesn't call into the base class which seems clearly a bug (though
   the intrinsic isize of the input is ~fixed, doesn't depend on font
   metrics, so it's probably ok).

My guess is that it was intended to be a debug-only check so that we
could detect stale baseline values.

Just remove this, and replace it by a non-fatal assert as it's done
elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D175745
2023-04-18 15:24:09 +00:00
Emilio Cobos Álvarez 6b96db2587 Bug 1825709 - Account for min/max bsize in nsTextControlFrame::ComputeBaseline. r=dshin
This isn't needed for nsTextControlFrame because its ComputeAutoSize
implementation doesn't return an unconstrained line-height for inputs,
so we never end up in the UNCONSTRAINEDSIZE case, but it's needed for
date/time inputs.

Use GetLineHeight while at it, since it's the inflated line-height which
is what we want, and may be cached so we can avoid computing it.

Maybe in the future we can make date/time inputs just use
nsTextControlFrame, which would prevent this from happening in the
future.

Depends on D175745

Differential Revision: https://phabricator.services.mozilla.com/D175746
2023-04-18 15:21:15 +00:00
Emilio Cobos Álvarez 8b5b7ad998 Bug 1827856 - Remove nativeAnonymousChildList observers. r=smaug,credential-management-reviewers,devtools-reviewers,sgalich,nchevobbe
You let me know if this seems appealing to you :)

Differential Revision: https://phabricator.services.mozilla.com/D175382
2023-04-18 14:58:34 +00:00
Timothy Nikkel 08919727d4 Bug 1827828. Bump fuzz on layout/reftests/svg/pattern-transformed-02.svg. r=gfx-reviewers,aosmond
I looked at the rendering, still looks same.

Differential Revision: https://phabricator.services.mozilla.com/D175774
2023-04-18 14:17:05 +00:00
Emilio Cobos Álvarez dc01df27d9 Bug 1825709 - Misc clean-ups in nsTextControlFrame. r=dshin
Use inline initializers etc.

Differential Revision: https://phabricator.services.mozilla.com/D175744
2023-04-18 13:47:57 +00:00
Jonathan Kew 76ed086766 Bug 1826629 - Add some basic reftests for -webkit-text-security rendering. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D175568
2023-04-18 11:47:08 +00:00
Jonathan Kew 9c1b2512f5 Bug 1826629 - Implement CSS and rendering (but not copy/paste) support for the (non-standard) -webkit-text-security property. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D174951
2023-04-18 11:47:07 +00:00
Jonathan Kew 0026f56411 Bug 1697980 - Implement new uppercase mapping of eszett (U+00DF) to U+1E9E, but preffed-off by default due to inconsistent font support. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175620
2023-04-18 07:06:09 +00:00
Cristian Tuns f65f34399a Backed out 2 changesets (bug 1753565) for causing bc failures in browser_proton_moreTools_panel.js CLOSED TREE
Backed out changeset 817b0cf1e4e0 (bug 1753565)
Backed out changeset 947534ff1319 (bug 1753565)
2023-04-18 02:03:20 -04:00
Glenn Watson 5b6634089f Bug 1798725 - Update fuzziness for 1425243-2.html. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175731
2023-04-18 04:44:20 +00:00
Dan Robertson e4776501d3 Bug 1753565 - Disable smooth scrolls if prefers-reduced-motion. r=botond
If the user has the prefers-reduced-motion system setting enabled, do
not enable smooth scrolls.

Differential Revision: https://phabricator.services.mozilla.com/D172446
2023-04-18 04:11:10 +00:00
Emily McDonough a225e191c6 Bug 1828004 - Combine GetDefaultPageSizeOrientation and GetPageSizeForPageName r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175420
2023-04-17 23:27:26 +00:00
Robert Longson 2fdf702d6e Bug 1828291 - Give SVGImageFrame its own implementation of IsInvisible r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175559
2023-04-17 22:04:27 +00:00
Norisz Fay 0e011d8b41 Backed out changeset 9e43f68395b4 (bug 1697980) for causing reftest failures on 1425243-2.html CLOSED TREE 2023-04-17 21:57:08 +03:00
Andi-Bogdan Postelnicu bf2bb59367 Bug 1277372 - Move away from "mozilla/TypeTraits.h". r=geckoview-reviewers,sergesanspaille,m_kato
std::is_pod has been deprecated in C++20, see https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0767r1.html.
This is equivalent with std::is_trivial_v && std::is_standard_layout.

Differential Revision: https://phabricator.services.mozilla.com/D174128
2023-04-17 13:50:11 +00:00
Jonathan Kew e8a99621ca Bug 1697980 - Implement new uppercase mapping of eszett (U+00DF) to U+1E9E, but preffed-off by default due to inconsistent font support. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175620
2023-04-17 12:46:49 +00:00
Mirko Brodesser c47bb134d2 Bug 1825807: part 1) Replace popover's ':open' and ':closed' pseudo-classes with ':popover-open'. r=emilio
See https://github.com/whatwg/html/pull/9077.

Differential Revision: https://phabricator.services.mozilla.com/D175223
2023-04-17 12:18:03 +00:00
Glenn Watson 7cb499d1d9 Bug 1823578 - Add new clip-mask rendering path r=gfx-reviewers,ahale
This adds the new infrastructure for rendering masked primitives
and uses it for simple rectangle primitives. Follow up patches
will port other primitives to it (and transformed rectangles).

Instead of rendering an alpha mask and then applying that during
picture cache rendering of content, the underlying content is
drawn to an off-screen surface, and the mask is applied on
top of that via multiplicative blending.

This is particularly helpful for applying masks to dynamically
rendered pictures in future, as we can apply the mask over the
already rendered picture without allocating an extra surface.

Since the content and mask is rendered together to a surface,
we can take advantage of this in future by caching the result
in the texture cache, rather than a temporary render target.
This means we don't need to redraw clip masks for this content
each time the surrounding area is invalidated.

Since the clip-mask is rendered in to the off-screen surface,
it is cheaper and simpler to composite the content in to the
main scene, avoiding an extra texture fetch and some tricky
fragment shader logic to sample the correct part of the mask.

To reduce the number of off-screen pixels that get drawn, the
system supports splitting the content up in to a series of
segments. This can either be a 9-patch, for the simple and
common case of a single rounded clip, or a tile grid across
the primitive. The tile grid can make it much faster to apply
large image masks, where there are often large areas that we
can determine are not affected by the mask image.

Differential Revision: https://phabricator.services.mozilla.com/D173095
2023-04-17 04:04:17 +00:00
Timothy Nikkel 43e14bb053 Bug 1828363. Allow decreased fuzz in image-element/gradient-html-06a/b.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175574
2023-04-17 02:19:31 +00:00
Lee Salzman 17121ddfaa Bug 1821512 - Update fuzz for Skia update. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D173326
2023-04-16 15:34:50 +00:00
Natalia Csoregi 53631b0cfb Backed out 6 changesets (bug 1821512) for failures on browser_screenshots_test_full_page.js. CLOSED TREE
Backed out changeset a31f2795710e (bug 1821512)
Backed out changeset 3985c29a6490 (bug 1821512)
Backed out changeset 0d9814a43a4d (bug 1821512)
Backed out changeset e5570884e8e4 (bug 1821512)
Backed out changeset efc92c86fafd (bug 1821512)
Backed out changeset 3222f6498a44 (bug 1821512)
2023-04-16 11:30:32 +03:00
Lee Salzman f678652f3c Bug 1821512 - Update fuzz for Skia update. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D173326
2023-04-16 04:00:01 +00:00
Emilio Cobos Álvarez 47a3ff3078 Bug 1827960 - Add a <svg:use> recursion limit in the parent process. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D175473
2023-04-15 14:37:11 +00:00
Emily McDonough 9067f2e7c8 Bug 1828229 - Removed unused includes in layout/style/ServoStyleSet.cpp r=boris
Differential Revision: https://phabricator.services.mozilla.com/D175539
2023-04-15 00:58:54 +00:00
Florian Quèze 59b4cf8598 Bug 1828008 - Avoid creating timers with a delay of UINT32_MAX in nsCaret::ResetBlinking, r=emilio.
Differential Revision: https://phabricator.services.mozilla.com/D175421
2023-04-14 13:25:13 +00:00
Emilio Cobos Álvarez 9ba02d6644 Bug 1827997 - Couple other minor consistency clean-ups in that function. r=tnikkel
All other comments use the inline style, so be consistent. Also remove
some useless parenthesis.

Differential Revision: https://phabricator.services.mozilla.com/D175409
2023-04-14 08:22:08 +00:00
Emilio Cobos Álvarez 299e4fd476 Bug 1827997 - Remove some unused AutoSaveRestore variables in BuildDisplayListForStackingContext. r=mstange
We don't modify the clip in their scope, so we don't really need them,
afaict.

Bug 1413073 removed the clearing, but not the restore calls.

I was looking at these because of bug 1827428.

Differential Revision: https://phabricator.services.mozilla.com/D175408
2023-04-14 08:22:08 +00:00
Jonathan Kew 4a36554eb1 Bug 1827009 - Add testcase as a reftest. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D175266
2023-04-13 09:43:14 +00:00
Emilio Cobos Álvarez e170de6a14 Bug 1826622 - [wayland] Ensure explicit popup constraints are honored. r=stransky
This makes sure that wayland <select> elements are constrained to the
window.

Differential Revision: https://phabricator.services.mozilla.com/D175039
2023-04-13 07:42:36 +00:00
Timothy Nikkel a454d87007 Bug 1780191. Avoid making primitives smaller than one pixel active. r=nical
Webrender doesn't seem to handle them well. This of course will affect the balance of making things active, but hopefully this is a good trade off.

Differential Revision: https://phabricator.services.mozilla.com/D165726
2023-04-13 03:52:57 +00:00
Dan Robertson 903da59f75 Bug 1822116 - image-orientation: none should apply to CORS image requests. r=emilio
The image-orientation: none property should apply to images that use
CORS.

Differential Revision: https://phabricator.services.mozilla.com/D175051
2023-04-13 01:41:53 +00:00
Emilio Cobos Álvarez cd8effeca0 Bug 1826881 - Fix suspicious tree invalidation code. r=dholbert
Could probably figure out a reasonable way to add a test for this but I
don't think it's the best use of our time tbh.

Differential Revision: https://phabricator.services.mozilla.com/D175117
2023-04-12 22:04:03 +00:00
Jonathan Kew 86e7ebd055 Bug 1121792 - Use more complete BCP47/RFC4647 language-range matching rather than simple prefix-dash match for the :lang() pseudo. r=emilio
This is a Selectors-4 enhancement to the spec for the :lang() pseudo-class.
It seems Safari has been shipping this behavior for some time.

Differential Revision: https://phabricator.services.mozilla.com/D174999
2023-04-12 21:46:46 +00:00
Boris Chiou f332d39f49 Bug 1737920 - Part 3: Look up named view timeline for CSS animations and update WPT expectations. r=emilio
Disable OMTA support for now. We have to make sure what should we do when
the subject is scrolled to "out of view" on the compositor, in Bug 1818346.
And we have to make sure view-timeline-inset animation work well on the
compositor.

Also, update tests,
1) timeline-offset-keyframes-hidden-subject.html, and
2) view-timeline-keyframe-boundary-interpolation.html,
to avoid js error because Gecko doesn't expose Animation object with
scroll-timeline or view-timeline.

And update test, view-timeline-lookup.html, because scroll progress timelines
take precedence over view progress timelines (i.e. choose the matched scroll
progress timeline first), per the spec in
https://drafts.csswg.org/scroll-animations-1/#timeline-scope.

Differential Revision: https://phabricator.services.mozilla.com/D170004
2023-04-12 20:52:03 +00:00
Boris Chiou ccc24f9fa1 Bug 1737920 - Part 1: Create ViewTimeline when specifying view-timeline property. r=emilio
However, We don't lookup the object of view-timeline-name for CSS animations
until we finish its implementation in the patch series.

Note: this patch assumes `view-timeline-inset` is not animatable. We will
fix it in Bug 1817073.

Differential Revision: https://phabricator.services.mozilla.com/D170001
2023-04-12 20:52:02 +00:00
Jonathan Kew 9404d81ceb Bug 1827604 - Special-case the apostrophe characters in text-transform:capitalize heuristics. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175248
2023-04-12 20:07:18 +00:00
Narcis Beleuzu 937fd1f910 Backed out changeset 4548910a12b0 (bug 1823578) as req by gwatson . CLOSED TREE 2023-04-12 22:54:32 +03:00
Narcis Beleuzu 8d21434933 Backed out 6 changesets (bug 1121792) for mochitest failures in malloc_usable_size . CLOSED TREE
Backed out changeset 879211a561cc (bug 1121792)
Backed out changeset 195d689a6b12 (bug 1121792)
Backed out changeset 9726f4b6035a (bug 1121792)
Backed out changeset be24fa5c3e70 (bug 1121792)
Backed out changeset 2e4e3ae6cddd (bug 1121792)
Backed out changeset e535870263d8 (bug 1121792)
2023-04-12 22:26:19 +03:00