Commit Graph

13798 Commits

Author SHA1 Message Date
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
dcedd925dc Bug 1726515 - Workaround GCC-calling-into-LLVM ABI issue by making GenericFontFamily larger. r=hiro
This enum being a bit larger doesn't cause many common data structures
to grow, so this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D123146
2021-08-23 09:18:49 +00:00
Matt Woodrow
fea5444468 Bug 1723266 - Return an infinite perspective in TransformOperation::Perspective::to_animated_zero. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D122919
2021-08-22 20:46:47 +00:00
Cosmin Sabou
b8da11ef50 Backed out changeset 21e4ad4c8599 (bug 1723266) for causing mochitest plain failures on test_distance_of_transform.html. CLOSED TREE 2021-08-20 02:39:15 +03:00
Matt Woodrow
0c573563cc Bug 1723266 - Return an infinite perspective in TransformOperation::Perspective::to_animated_zero. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D122919
2021-08-19 21:47:54 +00:00
Emilio Cobos Álvarez
1c4e04a80e Bug 1105364 - Respect transparent and system color border colors in forced-colors mode. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D123111
2021-08-19 17:46:54 +00:00
Emilio Cobos Álvarez
c41f086b94 Bug 1726182 - Add a use counter for content-visibility. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D122873
2021-08-17 18:25:11 +00:00
Mats Palmgren
14c9063444 Bug 1706080 - [css-fonts] Implement 'font-synthesis: small-caps'. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D114313
2021-08-09 21:41:34 +00:00
Sebastian Hengst
c136a57852 Merge mozilla-central to autoland. CLOSED TREE 2021-08-09 19:13:59 +02:00
Barret Rennie
247bd59b37 Bug 1703356 - Support color-mix() in non-sRGB color spaces r=emilio
Out of gamut colours are currently clipped into sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D120561
2021-08-09 16:16:40 +00:00
Ryan VanderMeulen
dd07f3dbc0 Backed out changeset 4b53d6459297 (bug 1719963) for causing topcrash bug 1722150. 2021-08-09 08:52:56 -04:00
mbrubeck@limpet.net
3c9cf910ab Bug 1723791 - Upgrade to uluru 1.1.1. r=emilio
MANUAL PUSH: Patch wasn't pushed via phabricator.
2021-08-04 10:07:56 +02:00
Emilio Cobos Álvarez
a4e7c9e510 Bug 1722945 - Support break-inside: avoid-{page,column}. r=TYLin
break-before/after: page|column seem harder because you need to deal
with nested breaks, I think, but this should be straight-forward.

Differential Revision: https://phabricator.services.mozilla.com/D121206
2021-08-03 17:56:58 +00:00
Noemi Erli
89a565ea85 Backed out changeset 67c33ba5566e (bug 1722945) for causing bustage in nsContainerFrame.cpp 2021-08-03 20:35:10 +03:00
Emilio Cobos Álvarez
3d1b4f252f Bug 1722945 - Support break-inside: avoid-{page,column}. r=TYLin
break-before/after: page|column seem harder because you need to deal
with nested breaks, I think, but this should be straight-forward.

Differential Revision: https://phabricator.services.mozilla.com/D121206
2021-08-03 13:59:47 +00:00
Emilio Cobos Álvarez
bbca45e817 Bug 1722488 - Don't alias -apple-system to system-ui for now, to keep /css/css-fonts/animations/system-fonts.html happy.
We probably want to do this when they do something different, but for
now behavior should be the same and it causes some subtests to fail
because `getComputedStyle(..).fontFamily` for system fonts seems to
return -apple-system, but `.style.fontFamily = "-apple-system"` returns
`system-ui`.

MANUAL PUSH: Orange fix on a CLOSED TREE
2021-08-02 01:10:13 +02:00
Nazım Can Altınova
6788f940ac Bug 1652560 - Remove the unused "gecko_profiler" feature from servo r=emilio
This was being used when we had special code for gecko profiler in the servo
codebase but we just removed the last one. This is safe to remove now. The
"enabled" feature in the gecko-profiler crate is being controlled by
gkrust-shared directly now.

Differential Revision: https://phabricator.services.mozilla.com/D120796
2021-07-30 21:49:23 +00:00
Nazım Can Altınova
ef8cd9ad96 Bug 1652560 - Remove the old profiler label frames code in the servo codebase and replace it with the new API r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120795
2021-07-30 21:49:22 +00:00
Mike Hommey
4dce5725b3 Bug 1722652 - Setup bindgen flags for servo similarly to cranelift and neqo. r=emilio
While the use of toml allows the flags to be separated, the split is
done via some shell shenanigans anyways, and servo's build.rs can
handle the same just fine.

Differential Revision: https://phabricator.services.mozilla.com/D121042
2021-07-28 20:37:48 +00:00
Morgan Reschenberg
72570f3a98 Bug 1720792: Add MozNativevisitedhyperlinktext color, use it to style visited links r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120657
2021-07-28 17:25:58 +00:00
Alexandru Michis
9734c4f0c2 Backed out changeset d06a9296cfab (bug 1718934) for not fixing Bug 1718934 in its entirety. 2021-07-27 20:27:46 +03:00
Emilio Cobos Álvarez
02bbf0389a Bug 1722299 - Initial support for the color-scheme CSS property. r=mstange
Add initial support for the color-scheme CSS property, allowing pages to
choose between light and dark system colors per-element, and such.

Things that are left to do so that this can be enabled by default:

 * Dark system colors on Windows / Android / Standins.
 * Dark Canvas/CanvasText/Link visited colors (which right now are set
   via PreferenceSheet).
 * Dark form controls in nsNativeBasicTheme.
 * Processing the color-scheme meta tag to fill-in
   Document::mColorSchemeBits.

But this seems like enough progress to be landable on its own.

Differential Revision: https://phabricator.services.mozilla.com/D120843
2021-07-27 15:50:48 +00:00
Emilio Cobos Álvarez
f501d497d2 Bug 1720710 - Add system-ui boilerplate. r=jfkthame
Alias -apple-system to it, and put it behind a pref for now. This is
pretty boring (read: uncontroversial hopefully) code. The follow-up work
is modifying StaticPresData to look up the fonts using system APIs,
probably. Maybe a bit more work if on macOS they can't be named.

Differential Revision: https://phabricator.services.mozilla.com/D119984
2021-07-27 11:11:51 +00:00
Emilio Cobos Álvarez
143c3e18d7 Bug 1722400 - Remove layout.css.image-set.enabled. r=TYLin
We shipped this in 88.

Differential Revision: https://phabricator.services.mozilla.com/D120899
2021-07-27 06:59:39 +00:00
Emilio Cobos Álvarez
4fe6efa8c9 Bug 1717873 - Factor PreferenceSheet colors to its own struct. r=morgan
This will come handy in the next patch.

Depends on D120678

Differential Revision: https://phabricator.services.mozilla.com/D120679
2021-07-24 21:10:44 +00:00
Emily McDonough
9651a4d2c2 Bug 1720554 Part 1 - Remove the paper size variant of GenericPageSize and add an implied default to the paper size and orientation variant. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119915
2021-07-23 18:11:16 +00:00
Emilio Cobos Álvarez
554f7bcc76 Bug 1719963 - Better wallpaper for now.
Differential Revision: https://phabricator.services.mozilla.com/D120699
2021-07-23 07:43:59 +00:00
Sonia Singla
05e2031f5f Bug 1665638 - Remove layout.css.clip-path-path.enabled.r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120235
2021-07-22 08:04:47 +00:00
Emilio Cobos Álvarez
60812fc63c Bug 1711437 - Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.

Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-07-20 13:17:02 +00:00
Sonia Singla
28ced48ac1 Bug 1659266 - Remove layout.css.prefixes.columns. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120057
2021-07-19 09:20:14 +00:00
Iulian Moraru
a6eeed2022 Backed out changeset ff3b52062c5a (bug 1659266) for causing build bustages on WebIDLPrefs. CLOSED TREE 2021-07-16 16:02:09 +03:00
Sonia Singla
0200117fc5 Bug 1659266 - Remove layout.css.prefixes.columns. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120057
2021-07-16 12:17:49 +00:00
Emilio Cobos Álvarez
4cd9444b4f Bug 1717922 - Blockify outside markers at used value time rather than at computed value time. r=jfkthame
Trusting the display value in style_adjuster is wrong, as some elements
force a given kind of frame (like <details>).

Differential Revision: https://phabricator.services.mozilla.com/D119609
2021-07-15 11:23:19 +00:00
Emilio Cobos Álvarez
4770456952 No bug - Fix mixed indentation in style_adjuster.rs. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D119579
2021-07-11 20:44:01 +00:00
Emilio Cobos Álvarez
ca8a794bb9 Bug 1719824 - Inline GeckoNode::prev_sibling. r=smaug
It's very hot when matching some kind of selectors like the ones in bug
1717267, and the two function calls show up in the profiles.

Differential Revision: https://phabricator.services.mozilla.com/D119505
2021-07-09 15:22:59 +00:00
Emilio Cobos Álvarez
d0dc21c8aa Bug 1718934 - Parse -webkit-focus-ring-color (computing to black). r=mstange,geckoview-reviewers,aklotz
Some pages use this to hide the focus outline. On Blink it seems black,
WebKit uses it to expose the OS accent color. Make it black, which is
the default when the color isn't implemented on a given platform.

Differential Revision: https://phabricator.services.mozilla.com/D119036
2021-07-08 15:27:27 +00:00
Narcis Beleuzu
1b3ee0f17f Backed out changeset 66a484400799 (bug 1718934) for mochitest failures on test_value_computation.html . CLOSED TREE 2021-07-08 00:37:51 +03:00
Emilio Cobos Álvarez
b63ea5363d Bug 1718934 - Parse -webkit-focus-ring-color (computing to black). r=mstange,geckoview-reviewers,aklotz
Some pages use this to hide the focus outline. On Blink it seems black,
WebKit uses it to expose the OS accent color. Make it black, which is
the default when the color isn't implemented on a given platform.

Differential Revision: https://phabricator.services.mozilla.com/D119036
2021-07-07 19:24:29 +00:00
Jonathan Kew
bf3113343b Bug 1716841 - Update font-size-adjust keywords to match CSSWG resolution in csswg-drafts/#6288. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118198
2021-07-07 11:58:40 +00:00
Emilio Cobos Álvarez
e54b955075 Bug 1718337 - More fine-grained viewport units invalidation. r=layout-reviewers,jfkthame
This should speed up window resize significantly.

Differential Revision: https://phabricator.services.mozilla.com/D118878
2021-07-07 11:16:20 +00:00
Emilio Cobos Álvarez
ca1298dd5b Bug 1718281 - Reduce code size of shorthand serialization. r=layout-reviewers,AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D118835
2021-07-07 08:31:54 +00:00
Emilio Cobos Álvarez
61c256eb2d Bug 1718281 - Make get_shorthand_appendable_value less generic. r=layout-reviewers,AlaskanEmily
This will allow to save some codesize from longhands_to_css.

Differential Revision: https://phabricator.services.mozilla.com/D118834
2021-07-07 08:31:53 +00:00
Matt Woodrow
9abbb5ba9f Bug 1717161 - Clamp perspective() values to a minimum of 1px. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118250
2021-07-05 05:19:15 +00:00
Makoto Kato
44e39a47b2 Bug 1718510 - Add riscv64 define to hashglobe. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118910
2021-06-29 01:17:23 +00:00
Mats Palmgren
e0fbda09f4 Bug 1699964 - [css-content] Implement 'content: none' for elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D114130
2021-06-23 02:52:42 +00:00
Mats Palmgren
c019c6f680 Bug 1605473 - Implement 'content: none' for ::marker. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111707
2021-06-23 02:52:42 +00:00
Emily McDonough
82b5e35dae Bug 1647851 Part 1 - Use a computed type for page-size which converts paper sizes to a Size2D. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115842
2021-06-22 19:41:57 +00:00
Butkovits Atila
8a0cd56061 Backed out changeset b7e1a728dfd2 (bug 1717161) for causing failures at perspective-zero-2.html. CLOSED TREE 2021-06-22 05:07:47 +03:00
Matt Woodrow
711df33fa5 Bug 1717161 - Clamp perspective() values to a minimum of 1px. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118250
2021-06-22 00:49:54 +00:00
Emilio Cobos Álvarez
fb069248c0 Bug 1716045 - Unify font-family storage. r=mats,jfkthame
This changes font-family storage to reuse the rust types, removing a
bunch of code while at it. This allows us to, for example, use a single
static font family for -moz-bullet and clone it, rather than creating a
lot of expensive copies.

Differential Revision: https://phabricator.services.mozilla.com/D118011
2021-06-18 19:35:50 +00:00