Skip to content

Commit

Permalink
Update WR (clip masks on angle gradients, fix clips on transformed im…
Browse files Browse the repository at this point in the history
…ages).
  • Loading branch information
gw3583 committed Oct 4, 2017
1 parent d8c7066 commit bcd7405
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions components/layout/webrender_helpers.rs
Expand Up @@ -458,15 +458,15 @@ impl WebRenderDisplayItemConverter for DisplayItem {
}
DisplayItem::PushTextShadow(ref item) => {
let rect = item.base.bounds;
builder.push_text_shadow(&prim_info(rect, Some(item.base.local_clip)),
webrender_api::TextShadow {
blur_radius: item.blur_radius.to_f32_px(),
offset: item.offset.to_vectorf(),
color: item.color,
});
builder.push_shadow(&prim_info(rect, Some(item.base.local_clip)),
webrender_api::Shadow {
blur_radius: item.blur_radius.to_f32_px(),
offset: item.offset.to_vectorf(),
color: item.color,
});
}
DisplayItem::PopTextShadow(_) => {
builder.pop_text_shadow();
builder.pop_shadow();
}
DisplayItem::Iframe(ref item) => {
let rect = item.base.bounds;
Expand Down

0 comments on commit bcd7405

Please sign in to comment.