mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Enable item clipping on normal transform layers. Fixes rounded corners on layers with 2d transforms.
Needed for #6643.
This commit is contained in:
parent
8f55af1190
commit
be8864ae5c
1 changed files with 4 additions and 6 deletions
|
@ -1033,12 +1033,10 @@ 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()),
|
||||
}
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue