mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Directly build WebRender LineDisplayItem
Remove unused SimpleMatrixDetection.
This commit is contained in:
parent
e5da0ebd1d
commit
93abe795c6
3 changed files with 27 additions and 58 deletions
|
@ -131,14 +131,7 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
);
|
||||
},
|
||||
DisplayItem::Line(ref item) => {
|
||||
builder.push_line(
|
||||
&self.prim_info(),
|
||||
// TODO(gw): Use a better estimate for wavy line thickness.
|
||||
(0.33 * item.base.bounds.size.height).ceil(),
|
||||
webrender_api::LineOrientation::Horizontal,
|
||||
&item.color,
|
||||
item.style,
|
||||
);
|
||||
builder.push_item(SpecificDisplayItem::Line(item.item), &self.prim_info());
|
||||
},
|
||||
DisplayItem::BoxShadow(ref item) => {
|
||||
builder.push_item(SpecificDisplayItem::BoxShadow(item.item), &self.prim_info());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue