Enable item clipping on normal transform layers. Fixes rounded corners on layers with 2d transforms.

Needed for #6643.
This commit is contained in:
Glenn Watson 2015-08-13 16:03:25 +10:00
parent 8f55af1190
commit be8864ae5c

View file

@ -1033,13 +1033,11 @@ impl<'a> Iterator for DisplayItemIterator<'a> {
impl DisplayItem {
/// Paints this display item into the given painting context.
fn draw_into_context(&self, paint_context: &mut PaintContext) {
if paint_context.layer_kind == LayerKind::NoTransform {
let this_clip = &self.base().clip;
match paint_context.transient_clip {
Some(ref transient_clip) if transient_clip == this_clip => {}
Some(_) | None => paint_context.push_transient_clip((*this_clip).clone()),
}
}
match *self {
DisplayItem::SolidColorClass(ref solid_color) => {