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

16872 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 0fc915272e Bug 1729894 - Now that WR is everyhwere, enable backdrop-filter on early-beta / nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D125054
2021-09-15 11:33:29 +00:00
criss 2365892d99 Backed out changeset 80a164c1054e (bug 1730669) for causing bustages on css::SheetLoadData 2021-09-15 15:07:06 +03:00
Emilio Cobos Álvarez 1a541b6a88 Bug 1730669 - Simplify requesting node set up in the CSS loader. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125527
2021-09-15 11:02:57 +00:00
Chris Peterson c9530ebe28 Bug 1729598 - Replace MOZ_MUST_USE_TYPE with [[nodiscard]]. r=static-analysis-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D125504
2021-09-15 05:10:51 +00:00
Emilio Cobos Álvarez ba00bd23b7 Bug 1729477 - Remove nsXULPrototypeCache::mStyleSheetTable. r=smaug
With a very simple tweak to SheetLoadDataHashKey::KeyEquals we should
get the same kind of caching but in a much simpler way.

Depends on D125450

Differential Revision: https://phabricator.services.mozilla.com/D124807
2021-09-14 10:43:49 +00:00
Emilio Cobos Álvarez 3d56b49731 Bug 1729477 - Prevent SheetLoadData from creating cycles for too long. r=smaug
This fixes a leak that my previous patch uncovers. See comment 9 for the
diagnostic, I had missed mRequestingNode in comment 10.

The observer change is not technically necessary but since observers can
theoretically keep alive random stuff as well, clean them up as well.

In particular, clear mOwningNode after we've fired load / error events
(which is what we need it for), and mRequestingNode once we call
LoadComplete, where it is no longer useful.

Differential Revision: https://phabricator.services.mozilla.com/D125450
2021-09-14 10:43:48 +00:00
Marian-Vasile Laza fd405f793b Backed out changeset 80c0c730e1aa (bug 1729894) for causing mochitest failures on browser_styleeditor_autocomplete.js. CLOSED TREE 2021-09-13 23:00:00 +03:00
Emilio Cobos Álvarez 92dab3e4de Bug 1729894 - Now that WR is everyhwere, enable backdrop-filter on early-beta / nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D125054
2021-09-13 18:22:42 +00:00
Emilio Cobos Álvarez 9a40a6df47 Bug 1728187 - Avoid minor alpha serialization mismatches in macOS in test_dont_use_document_colors.html.
MANUAL PUSH: Test fix CLOSED TREE
2021-09-13 02:55:42 +02:00
Emilio Cobos Álvarez 4abd90b054 Bug 1728187 - Make the non-native theme not use standins for system colors if forcing colors. r=morgan
We allow using system colors when forcing colors so it makes sense to do this.

Differential Revision: https://phabricator.services.mozilla.com/D125271
2021-09-12 23:37:47 +00:00
Emilio Cobos Álvarez 135a6c86bd Bug 1728187 - Make prefers-contrast match when forcing colors. r=morgan
This seems to match the expectation of ~all our stylesheets, which have
nice things for HCM / forced-colors which only happen when actually
using OS HCM.

Differential Revision: https://phabricator.services.mozilla.com/D125269
2021-09-12 23:37:46 +00:00
Emilio Cobos Álvarez d41c93a17a Bug 1687682 - Make autofill use a semi-transparent background-image rather than filter. r=mstange,tgiles
With the non-native theme we don't need filter for this to affect
"native" inputs, we can just implement the logic in nsNativeBasicTheme
instead.

A bit unfortunate that we need that special-case, but it seems better
than using filter, which can break websites due to it creating an
stacking context.

I _think_ there are tests that I need to adjust for this change, but if
not I'll write some.

Keep the current behavior behind a pref just in case.

Differential Revision: https://phabricator.services.mozilla.com/D125232
2021-09-12 11:16:07 +00:00
Iulian Moraru ebdc13da8f Backed out 2 changesets (bug 1728187) for causing reftest failures on backplate-select-001.html. CLOSED TREE
Backed out changeset 3a8197599a5c (bug 1728187)
Backed out changeset d26328903485 (bug 1728187)
2021-09-11 04:08:21 +03:00
Iulian Moraru 1121a4ab66 Backed out changeset 282b96702ce9 (bug 1687682) for causing multiple mochitest failures. 2021-09-11 04:07:28 +03:00
Emilio Cobos Álvarez b31a2c497f Bug 1730134 - Add some parsing and serialization tests for @layer. r=boris
This uncovers some serialization bugs, and some missing null-checks
given the statement layer doesn't have a rule list.

Differential Revision: https://phabricator.services.mozilla.com/D125176
2021-09-10 23:16:02 +00:00
Emilio Cobos Álvarez 694fef2dcb Bug 1728187 - Make the non-native theme not use standins for system colors if forcing colors. r=morgan
We allow using system colors when forcing colors so it makes sense to do this.

Differential Revision: https://phabricator.services.mozilla.com/D125271
2021-09-10 23:10:52 +00:00
Emilio Cobos Álvarez cb73f03ff7 Bug 1728187 - Make prefers-contrast match when forcing colors. r=morgan
This seems to match the expectation of ~all our stylesheets, which have
nice things for HCM / forced-colors which only happen when actually
using OS HCM.

Differential Revision: https://phabricator.services.mozilla.com/D125269
2021-09-10 23:10:51 +00:00
Emilio Cobos Álvarez 269520d9e9 Bug 1687682 - Make autofill use a semi-transparent background-image rather than filter. r=mstange,tgiles
With the non-native theme we don't need filter for this to affect
"native" inputs, we can just implement the logic in nsNativeBasicTheme
instead.

A bit unfortunate that we need that special-case, but it seems better
than using filter, which can break websites due to it creating an
stacking context.

I _think_ there are tests that I need to adjust for this change, but if
not I'll write some.

Keep the current behavior behind a pref just in case.

Differential Revision: https://phabricator.services.mozilla.com/D125232
2021-09-10 22:44:44 +00:00
Emilio Cobos Álvarez ba14a8c91c Bug 1730098 - Don't consider system-ui valid for user font prioritization. r=jfkthame
Since the user can't configure it, at least from the UI (we could add UI
for it but it's unclear it'd be worth it).

Differential Revision: https://phabricator.services.mozilla.com/D125182
2021-09-10 12:08:19 +00:00
Emilio Cobos Álvarez a480cfb732 Bug 1729477 - Tweak SubresourceCacheValidationInfo to account for chrome uris. r=tnikkel
Turns out my patch above causes some failures because chrome:// channels
don't have cache information, so we conservatively assume they always
expire, which causes some interesting timing issues in a single test.
Fun stuff.

Tweak the code so that SubresourceCacheValidationInfo has the
pre-existing data:// URI special-case and also special-cases chrome://
URIs.

Differential Revision: https://phabricator.services.mozilla.com/D124921
2021-09-09 09:32:11 +00:00
Sandor Molnar 870ff4f480 Backed out 3 changesets (bug 1729477) for causing devtools failures in browser_webconsole_sidebar_object_expand_when_message_pruned. CLOSED TREE
Backed out changeset 8cbf3101ed8a (bug 1729477)
Backed out changeset 7457834fb7d0 (bug 1729477)
Backed out changeset 1259d2d1f247 (bug 1729477)
2021-09-09 03:55:31 +03:00
Emilio Cobos Álvarez 2b47e33bec Bug 1729477 - Remove nsXULPrototypeCache::mStyleSheetTable. r=smaug
With a very simple tweak to SheetLoadDataHashKey::KeyEquals we should
get the same kind of caching but in a much simpler way.

Differential Revision: https://phabricator.services.mozilla.com/D124807
2021-09-08 21:03:02 +00:00
Emilio Cobos Álvarez d4d9525111 Bug 1729477 - Tweak SubresourceCacheValidationInfo to account for chrome uris. r=tnikkel
Turns out my patch above causes some failures because chrome:// channels
don't have cache information, so we conservatively assume they always
expire, which causes some interesting timing issues in a single test.
Fun stuff.

Tweak the code so that SubresourceCacheValidationInfo has the
pre-existing data:// URI special-case and also special-cases chrome://
URIs.

Differential Revision: https://phabricator.services.mozilla.com/D124921
2021-09-08 21:03:02 +00:00
Jonathan Kew bfa1d70def Bug 1715501 - patch 2 - Pass the presContext to platform font lookup methods so they can query it for font visibility. r=emilio
This does not in itself change user-visible behavior, but is a foundation for bug
1715507 where we will make the behavior per-context instead of global. This is basically
just plumbing, passing a pointer to the presContext that's asking for fonts to be
resolved all the way down to the gfx code that handles the font list and looks up
fonts.

For the immediate goal of making font visibility work per-context, it would be
sufficient to pass the desired visibility level in to the font-selection methods.
However, passing the actual presContext down (and not just its visibility level)
will enable us to report back via the dev console when a font is blocked (see bug
1715537), so the approach here provides the basis for that upcoming enhancement.

Depends on D124194

Differential Revision: https://phabricator.services.mozilla.com/D124195
2021-09-08 12:18:17 +00:00
Emilio Cobos Álvarez 597b7bc37d Bug 1729330 - Add a simple CSSLayerRule implementation. r=smaug
The specifics of how this is going to work are still getting spec'd /
discussed in https://github.com/w3c/csswg-drafts/issues/6576, but this
allows DevTools to work fine and the feature to be complete enough for
Nightly experimentation (with the other in-flight patches).

Otherwise devtools crashes when trying to inspect pages that use them.

Differential Revision: https://phabricator.services.mozilla.com/D124656
2021-09-08 11:18:32 +00:00
Cristian Tuns 9e1718d5a5 Backed out 4 changesets (bug 1715537, bug 1715507, bug 1715501) for causing mochitest failures on test_bug418986-2.html. CLOSED TREE
Backed out changeset fff777ea5637 (bug 1715537)
Backed out changeset 240308eb514d (bug 1715507)
Backed out changeset e3f8526e0e2a (bug 1715501)
Backed out changeset cfdd1c5d8d3f (bug 1715501)
2021-09-08 07:48:51 -04:00
Jonathan Kew 20585f15c0 Bug 1715501 - patch 2 - Pass the presContext to platform font lookup methods so they can query it for font visibility. r=emilio
This does not in itself change user-visible behavior, but is a foundation for bug
1715507 where we will make the behavior per-context instead of global. This is basically
just plumbing, passing a pointer to the presContext that's asking for fonts to be
resolved all the way down to the gfx code that handles the font list and looks up
fonts.

For the immediate goal of making font visibility work per-context, it would be
sufficient to pass the desired visibility level in to the font-selection methods.
However, passing the actual presContext down (and not just its visibility level)
will enable us to report back via the dev console when a font is blocked (see bug
1715537), so the approach here provides the basis for that upcoming enhancement.

Depends on D124194

Differential Revision: https://phabricator.services.mozilla.com/D124195
2021-09-08 09:35:17 +00:00
Jonathan Kew 6dbef6ba5d Bug 1729147 - Fix the serialization order for the text-decoration shorthand to match the canonical order in the spec. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D124536
2021-09-06 18:22:37 +00:00
Emilio Cobos Álvarez 70f53c85d4 Bug 856337 - Implement image-rendering: smooth and image-rendering: pixelated. r=jrmuizel,dholbert,longsonr
Also, more directly go from StyleImageRendering to wr::ImageRendering.

 * image-rendering: smooth the non-deprecated version of
   OptimizeQuality, which maps to SamplingFilter::LINEAR /
   wr::ImageRendering::Auto (which uses gl::LINEAR).

 * image-rendering: pixelated maps to wr::ImageRendering::Pixelated /
   SamplingFilter::POINT which is the same crisp-edges does.

Note that this uncovers that we were mapping image-rendering:
crisp-edges to wr::ImageRendering::Pixelated.

I'm going to preserve behavior on this patch but we should consider
switching that to map to wr::ImageRendering::CrispEdges on a
follow-up (filed bug 1728831 for this).

Differential Revision: https://phabricator.services.mozilla.com/D124378
2021-09-03 08:56:43 +00:00
Emilio Cobos Álvarez 58c214fd32 Bug 856337 - Move image-rendering out of mako. r=dholbert
It's easier to touch in the future that way, even though the derive list is
massive.

Differential Revision: https://phabricator.services.mozilla.com/D124377
2021-09-03 08:56:42 +00:00
Noemi Erli f3a236c514 Backed out 2 changesets (bug 856337) for causing xpcshell failures in test_css-properties-db.js CLOSED TREE
Backed out changeset 7070c7cea8ec (bug 856337)
Backed out changeset edc12b36439f (bug 856337)
2021-09-03 01:36:17 +03:00
Emilio Cobos Álvarez 1602724fa9 Bug 856337 - Implement image-rendering: smooth and image-rendering: pixelated. r=jrmuizel,dholbert,longsonr
Also, more directly go from StyleImageRendering to wr::ImageRendering.

 * image-rendering: smooth the non-deprecated version of
   OptimizeQuality, which maps to SamplingFilter::LINEAR /
   wr::ImageRendering::Auto (which uses gl::LINEAR).

 * image-rendering: pixelated maps to wr::ImageRendering::Pixelated /
   SamplingFilter::POINT which is the same crisp-edges does.

Note that this uncovers that we were mapping image-rendering:
crisp-edges to wr::ImageRendering::Pixelated.

I'm going to preserve behavior on this patch but we should consider
switching that to map to wr::ImageRendering::CrispEdges on a
follow-up (filed bug 1728831 for this).

Differential Revision: https://phabricator.services.mozilla.com/D124378
2021-09-02 20:28:39 +00:00
Emilio Cobos Álvarez a10cd487f5 Bug 856337 - Move image-rendering out of mako. r=dholbert
It's easier to touch in the future that way, even though the derive list is
massive.

Differential Revision: https://phabricator.services.mozilla.com/D124377
2021-09-02 20:28:39 +00:00
Tim Giles 0585d91193 Bug 1687684 - Always hide the value of a field when previewing form fields. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D123972
2021-09-02 15:29:47 +00:00
Emilio Cobos Álvarez 3d1e69b292 Bug 1693222 - Fix selecteditem color on macOS.
This is an oversight. I made selecteditem be -moz-html-cellhighlight,
but that's for inactive cells.

Use the inactive cell color everywhere (though android doesn't
differentiate). This matches other browsers and what was reviewed on
this bug.

MANUAL PUSH: The semi-transparent text-selection-disabled color caused
one test failure CLOSED TREE.
2021-09-02 17:27:30 +02:00
Emilio Cobos Álvarez 8b10d3a89d Bug 1693222 - Implement SelectedItem and SelectedItemText system colors. r=mstange
Since Highlight / HighlightText are now equivalent to the text selection
ones, remove those too.

Differential Revision: https://phabricator.services.mozilla.com/D123964
2021-09-02 11:38:01 +00:00
Narcis Beleuzu 92fc260af2 Backed out changeset 28a0487d0291 (bug 1693222) for reftest failure on themed-widget.html. CLOSED TREE 2021-09-02 02:26:12 +03:00
Emilio Cobos Álvarez ad799bfc54 Bug 1693222 - Remove highlighttext from property_database.js as it can legitimately be currentColor in some platforms.
MANUAL PUSH: Orange fix CLOSED TREE
2021-09-01 22:56:40 +02:00
Emilio Cobos Álvarez a64efcd48e Bug 1727709 - Simplify nsMenuPopupFrame mouse transparent handling. r=stransky
Make sure it's always in sync with the style.

Keeping a boolean field was useful when we didn't handle dynamic changes
to it, but now we do it's just redundant, and could cause correctness
issues.

Differential Revision: https://phabricator.services.mozilla.com/D124081
2021-09-01 19:24:39 +00:00
Emilio Cobos Álvarez c3eb845bbf Bug 1693222 - Implement SelectedItem and SelectedItemText system colors. r=mstange
Since Highlight / HighlightText are now equivalent to the text selection
ones, remove those too.

Differential Revision: https://phabricator.services.mozilla.com/D123964
2021-09-01 18:21:57 +00:00
Emilio Cobos Álvarez 90f700036a Bug 1727371 - Use the right color scheme for default background/color lookup on chrome docs. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D124059
2021-09-01 16:52:53 +00:00
Jeff Muizelaar ecd6741296 Bug 1728311 - Remove unused LayersMessages::TransactionInfo. r=aosmond
Fixes up some missing includes that accidentally worked before.

Differential Revision: https://phabricator.services.mozilla.com/D124060
2021-08-31 14:48:00 +00:00
Emilio Cobos Álvarez 075d4ba939 Bug 1727537 - Fix one extra instance of the pref that I missed.
MANUAL PUSH: Trivial test fix on a CLOSED TREE
2021-08-30 14:42:21 +02:00
Emilio Cobos Álvarez 01aa139f4a Bug 1727537 - Remove layout.css.is-and-where-better-error-recovery.enabled. r=hiro
We shipped this in 84

Differential Revision: https://phabricator.services.mozilla.com/D123623
2021-08-30 11:08:40 +00:00
Emilio Cobos Álvarez cfca657d9c Bug 1722487 - Avoid some work for font list updates. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D123363
2021-08-26 23:17:54 +00:00
Daniel Holbert 1f76d3eab9 Bug 1727604: clang-format the layout directory. r=layout-reviewers,TYLin
This patch's changes were automatically generated by this command:
./mach clang-format -p layout/

Differential Revision: https://phabricator.services.mozilla.com/D123662
2021-08-25 19:46:48 +00:00
Nazım Can Altınova 765bc72e8f Bug 1727529 - Remove the unused profiler servo FFI bindings r=emilio
Looks like they are some leftovers from the previous profiler Rust API changes.
I thought they were removed already, but apparently they were forgotten during
a rebase or somethig.

Differential Revision: https://phabricator.services.mozilla.com/D123619
2021-08-25 13:40:31 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Emilio Cobos Álvarez 380d55802a Bug 1725207 - Implement transform: perspective(none). r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D123350
2021-08-24 00:32:24 +00:00
Emilio Cobos Álvarez b47f6e64d7 Bug 1726396 - Update getComputedStyle pseudo-element behavior. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D122978
2021-08-23 23:59:30 +00:00