diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-05-25 18:29:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 18:29:52 -0500 |
commit | a961f6a1eb0c2375e1dae245eeaea849e093f224 (patch) | |
tree | 5c8db38ff03c3443d09ca2adb540038a7b7a4b83 /components/script/dom/bindings/codegen/parser/tests/test_deduplicate.py | |
parent | 83f82cb4d380f2bdd02f388702d6162af9a3c9bc (diff) | |
parent | ce2237e1232e8a2caed2da555fdec7acb2b54c75 (diff) | |
download | servo-a961f6a1eb0c2375e1dae245eeaea849e093f224.tar.gz servo-a961f6a1eb0c2375e1dae245eeaea849e093f224.zip |
Auto merge of #17041 - Manishearth:root_font_size, r=emilio
Move root_font_size to the device
ComputedValues is heap allocated, and the number of CVs grows with the number of elements, so we should keep it small. The root_font_size is the same for the document, so we should stash it on the device and use that instead.
Gecko actually just manually walks up the tree here, but we can't do that. A simple AtomicRefcell should be enough.
Nothing else can be styled in parallel with the root so the refcell should never panic.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17041)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests/test_deduplicate.py')
0 files changed, 0 insertions, 0 deletions