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:
Glenn Watson 2017-04-12 13:16:04 +10:00
parent 065f50014f
commit 9e874f50ae
4 changed files with 42 additions and 38 deletions

View file

@ -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,