-
Notifications
You must be signed in to change notification settings - Fork 1
WebRender documents
Nicolas Silva edited this page Aug 13, 2018
·
2 revisions
Options
- everything underneath
- find bar changes the size of the document viewport
- the status bar would need to be moved out
- look at the display list and split things up dynamically
How about document resize animations
- this happens when the find bar comes up from the bottom
How do we shrink the chrome document so it's only the top? Keep track of rectangles and subtract them?
If we render documents back to front naively we'll end up clearing the area of a document each time we clear the documents behind it (the area that overlaps that is), and hidden items (typically background rects) will get rendered and then fully re-written in some cases.
Solution: Do a simple clear pre-pass that clears all opaque documents and set a per-document depth value. Each document will need to use depth ranges within their clear depth and the clear depth of the document above.