aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmloutputelement.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-03-31 20:03:51 -0400
committerGitHub <noreply@github.com>2020-03-31 20:03:51 -0400
commitdd97e6d164457a3ebdb0be22bfa9ff76e251aced (patch)
tree40c41c7fd91204ef5a5b180290e9e1b5e7d3e6f2 /components/script/dom/htmloutputelement.rs
parent75ca3d8198520c1be5fa8218f8b238c7d319d78b (diff)
parent6ab7a50b31ae1551e28d1a67f396715fa560ced0 (diff)
downloadservo-dd97e6d164457a3ebdb0be22bfa9ff76e251aced.tar.gz
servo-dd97e6d164457a3ebdb0be22bfa9ff76e251aced.zip
Auto merge of #26076 - jdm:client-rect-cache, r=asajeffrey
Reduce unnecessary layout queries in babylon.js content Every frame, Babylon.js compares the width property of the webgl canvas element to its clientWidth. This incurs two layout operations every frame - one to get the dimensions of the element, and at the end of the frame to construct a display list and send that to webrender. These changes introduce the concept of cached layout values which are constructed from the result of layout queries. These cached values are automatically invalidated when a new layout operation takes place, but as long as only the query operations that stored a cached value are used and the DOM is not otherwise dirtied, the cached values will remain valid and no further layout operations will take place. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix (part of) #26019 - [x] These changes do not require tests because we have no infrastructure to test whether or not reflow occurred.
Diffstat (limited to 'components/script/dom/htmloutputelement.rs')
0 files changed, 0 insertions, 0 deletions