gecko-dev/servo/ports/geckolib
Emilio Cobos Álvarez 3d29b274ae Bug 1620359 - Don't clear the "uses viewport units" bit when a font that doesn't cause a style change loads. r=jfkthame
This is probably an old-ish bug made more frequent by the font loading
optimizations.

PostRebuildAllStyleData is a bit of a misnomer, but was always calling
ClearCachedData() on the style set, even if we weren't guaranteed to restyle
every element.

This means both wasted work and correctness issues (as the "uses <rare-feature>"
bits are cleared during this call, on the assumption that we'll then visit all
elements and that'd recompute it properly).

For now, unify a bit the different code paths and only clear these bits if we're
guaranteed to restyle all elements.

I should rename this to something better in a follow-up, and ideally also
decouple the ClearCachedData() calls a bit...

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

--HG--
extra : moz-landing-system : lando
2020-03-06 20:11:51 +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 1537876 - Augment CSS errors with the CSS selector r=emilio 2019-03-27 12:12:55 +00:00
glue.rs Bug 1510120 - Block running background-color animation on the compositor if there is any current-color keyframe. r=boris,flod 2020-03-03 21: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 1602843 - Preserve CSS input exactly during sanitization. r=hsivonen 2019-12-12 13:57:54 +00:00