mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update WR (gradients, batching, text run, border changes).
- Tidy and optimize the batching code. - Support tiling / repeat for linear and radial gradients. - Fix some edge cases of subpixel text AA. - Add clip mask support to border shaders. - Optimization to text run creation on CPU. - Handle more box-shadow clipping cases. - Fix a panic that could occur when window size is 0. - Clip / scroll API improvements.
This commit is contained in:
parent
065f50014f
commit
9e874f50ae
4 changed files with 42 additions and 38 deletions
|
@ -985,8 +985,8 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
})
|
||||
}
|
||||
|
||||
let center = Point2D::new(absolute_bounds.origin.x + absolute_bounds.size.width / 2,
|
||||
absolute_bounds.origin.y + absolute_bounds.size.height / 2);
|
||||
let center = Point2D::new(absolute_bounds.size.width / 2,
|
||||
absolute_bounds.size.height / 2);
|
||||
|
||||
Some(display_list::Gradient {
|
||||
start_point: center - delta,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue