gecko-dev/servo/ports/geckolib
Emilio Cobos Álvarez a214514a58 Bug 1624080 - Simplify the implementation of HasAuthorSpecifiedRules. r=heycam
This patch computes the author-specified properties during the CSS cascade, and
removes the complex rule-tree-based implementation that tries to do the cascade
again.

This changes behavior in two ways, one of them which is not observable to
content, I believe:

 * revert now re-enables the native styling. This was brought up in
   https://github.com/w3c/csswg-drafts/issues/4777 and I think it is a bug-fix.

   This is observable to content, and I'm adding a test for it.

 * We don't look at inherited styles from our ancestors when `inherit` is
   specified in a non-author stylesheet. This was introduced for bug 452969 but
   we don't seem to inherit background anymore for file controls or such. It
   seems back then file controls used to have a text-field.

   I audited forms.css and ua.css and we don't explicitly inherit
   padding / border / background-color into any nested form control.

We keep the distinction between border/background and padding, because the later
has some callers. I think we should try to align with Chromium in the long run
and remove the padding bit.

We need to give an appearance to the range-thumb and such so that we can assert
that we don't call HasAuthorSpecifiedRules on non-themed stuff. I used a new
internal value for that.

Differential Revision: https://phabricator.services.mozilla.com/D67722

--HG--
extra : moz-landing-system : lando
2020-03-26 16:48:01 +00:00
..
tests Bug 1614198 - Merge ImageLayer and Image. r=heycam 2020-02-10 20:02:31 +00:00
Cargo.toml Bug 1601732 - Update in-tree dependencies to smallvec 1.0. r=glandium 2019-12-05 23:30:59 +00:00
cbindgen.toml Bug 1620359 - Don't clear the "uses viewport units" bit when a font that doesn't cause a style change loads. r=jfkthame 2020-03-06 20:11:51 +00:00
error_reporter.rs Bug 1622058 - Cleanup CSS error reporting a bit. r=nordzilla 2020-03-16 20:50:21 +00:00
glue.rs Bug 1624080 - Simplify the implementation of HasAuthorSpecifiedRules. r=heycam 2020-03-26 16:48:01 +00:00
lib.rs Bug 1429305 - Use serde to serialize LengthPercentage and StyleRayFunction. r=emilio 2019-10-31 21:35:05 +00:00
stylesheet_loader.rs Bug 1613511 - Disallow @import rules for all Constructable StyleSheets functions r=emilio 2020-03-12 18:11:09 +00:00