Layerize StackingContexts that are on top of layers

StackingContexts that should be painted on top of StackingContexts that
are already layerized should automatically get their own layer. This
will ensure proper painting order.
This commit is contained in:
Martin Robinson 2015-09-04 12:44:43 -07:00
parent c442132196
commit 184238c348
8 changed files with 171 additions and 14 deletions

View file

@ -2058,7 +2058,7 @@ impl Flow for BlockFlow {
// FIXME(#2010, pcwalton): This is a hack and is totally bogus in the presence of pseudo-
// elements. But until we have incremental reflow we can't do better--we recreate the flow
// for every DOM node so otherwise we nuke layers on every reflow.
LayerId(self.fragment.node.id() as usize, fragment_index)
LayerId(self.fragment.node.id() as usize, fragment_index, 0)
}
fn is_absolute_containing_block(&self) -> bool {