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

@ -361,7 +361,7 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static {
#[allow(unsafe_code)]
fn layer_id(&self, fragment_id: u32) -> LayerId {
let obj = unsafe { mem::transmute::<&&Self, &raw::TraitObject>(&self) };
LayerId(obj.data as usize, fragment_id)
LayerId(obj.data as usize, fragment_id, 0)
}
/// Attempts to perform incremental fixup of this flow by replacing its fragment's style with