Bug 1879318 - Store custom property references in a list. r=zrhoffman,firefox-style...
commit5c2db164a204f65e4369c55f1cce111a5af0b44f
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 10 Feb 2024 16:57:40 +0000 (10 16:57 +0000)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 10 Feb 2024 16:57:40 +0000 (10 16:57 +0000)
tree464de7aedd93665f8c1891bb63f67fc59025d73d
parent19cc83e98a96f3b34399b66768c85f10d3e8f2e2
Bug 1879318 - Store custom property references in a list. r=zrhoffman,firefox-style-system-reviewers

This is a preliminary patch to keep all references (even duplicates), in
order to speed up substitution by avoiding re-tokenizing.

The assumption is that referencing the same variable multiple times
on the declaration is not common, and thus it's not a big deal to
optimize for that.

Differential Revision: https://phabricator.services.mozilla.com/D201082
servo/components/malloc_size_of/lib.rs
servo/components/style/custom_properties.rs
servo/components/to_shmem/lib.rs