mirror of
https://github.com/servo/servo.git
synced 2025-06-22 08:08:59 +01:00
Properly size synthesized layers Layers that are composed of several stacking contexts that need to be rendered on top of other layered content need synthesized layers. Previously, these layers were placed into a stacking context that was the same size as their parent. This patch creates a new type of PaintLayer which simply holds a display list. The layer is sized to the bounds of the DisplayList and its children are positioned relative to the parent stacking context. This will also be useful in the future, when items outside of StackingContexts are given their own layer for render order purposes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7891) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
mod.rs | ||
optimizer.rs |