mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update WR (implement blur filter, text-shadow blend fixes, frame output fix).
This commit is contained in:
parent
a5282cabe0
commit
2b6fe42236
3 changed files with 9 additions and 26 deletions
|
@ -21,11 +21,13 @@ use webrender_api::{ExtendMode, LayoutTransform};
|
|||
|
||||
fn prim_info(local_rect: Rect<Au>,
|
||||
local_clip: Option<webrender_api::LocalClip>) -> webrender_api::LayoutPrimitiveInfo {
|
||||
webrender_api::LayoutPrimitiveInfo {
|
||||
rect: local_rect.to_rectf(),
|
||||
local_clip,
|
||||
// TODO(gw): Make use of the WR backface visibility functionality.
|
||||
is_backface_visible: true,
|
||||
match local_clip {
|
||||
Some(local_clip) => {
|
||||
webrender_api::LayoutPrimitiveInfo::with_clip(local_rect.to_rectf(), local_clip)
|
||||
}
|
||||
None => {
|
||||
webrender_api::LayoutPrimitiveInfo::new(local_rect.to_rectf())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue