mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
layout: Don't built stacking contexts or display lists for empty blocks.
This commit is contained in:
parent
4094d16323
commit
08427ccee5
6 changed files with 50 additions and 1 deletions
|
@ -217,6 +217,12 @@ impl StackingContext {
|
|||
parent_clipping_and_scrolling: ClippingAndScrolling,
|
||||
established_reference_frame: Option<ClipScrollNodeIndex>,
|
||||
) -> StackingContext {
|
||||
if let Some(ref t) = transform {
|
||||
// These are used as scale values by webrender, and it can't handle
|
||||
// divisors of 0 when scaling.
|
||||
assert_ne!(t.m11, 0.);
|
||||
assert_ne!(t.m22, 0.);
|
||||
}
|
||||
StackingContext {
|
||||
id,
|
||||
context_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue