gecko-dev/layout
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
..
base 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
build Bug 1607356 - Move OTS sanitization to background thread. r=KrisWright 2020-03-04 18:25:08 +00:00
doc
forms Bug 1620307 - Rename -moz-menulist-button to -moz-menulist-arrow-button. r=spohl 2020-03-05 21:13:46 +00:00
generic Bug 1619617: part 2) Annotate `UnselectCells` with `MOZ_CAN_RUN_SCRIPT`. r=smaug 2020-03-06 12:03:30 +00:00
inspector Bug 1617746 - Deal with duplicate adopted stylesheets correctly. r=nordzilla 2020-02-27 01:46:17 +00:00
ipc Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown 2020-02-27 17:39:15 +00:00
mathml Bug 1617472 - Use enums for text-align / text-align-last. r=jfkthame 2020-02-24 13:32:57 +00:00
media
painting Bug 1619664 - Rename and don't null-check nsPresContext::GetTheme as it can't return null. r=dholbert 2020-03-04 01:58:30 +00:00
printing Bug 1619403. Merge nsPrintJob's GetDisplayTitleAndURL and GetDocumentTitleAndURL. r=nordzilla 2020-03-03 20:08:53 +00:00
reftests Bug 1432250 - Updated tests for input image output for zero or negative radii for <feMorphology>. r=mstange 2020-02-27 19:20:30 +00:00
style 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
svg Bug 1617644 - Convert color-interpolation #defines to an enum class. r=emilio 2020-02-29 15:41:13 +00:00
tables Bug 1619041 - Avoid unnecessary operations in nsCellMap::HasMoreThanOneCell. r=dbaron 2020-02-29 19:42:16 +00:00
tools Bug 1615505. Forward MozAfterPaint events from child processes to the reftest harness. r=kmag,mattwoodrow 2020-02-28 12:06:27 +00:00
xul Bug 1619664 - Rename and don't null-check nsPresContext::GetTheme as it can't return null. r=dholbert 2020-03-04 01:58:30 +00:00
moz.build