diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-12-18 09:36:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-18 09:36:25 -0500 |
commit | dcdf910a259005bbdd993089d12f9f7eca9a26db (patch) | |
tree | b3dec73475616d7baed5e7a6e250b6cd318186d6 /components/canvas/azure_backend.rs | |
parent | c65e2685db93024e60bb76d010e67cac2c16d91d (diff) | |
parent | 4f4c32fa6f95422674baf8b9b3b6933d0768f37c (diff) | |
download | servo-dcdf910a259005bbdd993089d12f9f7eca9a26db.tar.gz servo-dcdf910a259005bbdd993089d12f9f7eca9a26db.zip |
Auto merge of #24470 - pylbrecht:raqote, r=jdm
Enable raqote as 2D canvas rendering backend by default
<!-- Please describe your changes on the following line: -->
This will enable raqote by default and make all WPT tests pass.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #23431
<!-- Either: -->
- [X] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/canvas/azure_backend.rs')
-rw-r--r-- | components/canvas/azure_backend.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/canvas/azure_backend.rs b/components/canvas/azure_backend.rs index fa48d869c40..9b9d94c5052 100644 --- a/components/canvas/azure_backend.rs +++ b/components/canvas/azure_backend.rs @@ -189,9 +189,9 @@ impl GenericPathBuilder for azure_hl::PathBuilder { anticlockwise, ); } - fn get_current_point(&mut self) -> Point2D<f32> { + fn get_current_point(&mut self) -> Option<Point2D<f32>> { let AzPoint { x, y } = azure_hl::PathBuilder::get_current_point(self); - Point2D::new(x as f32, y as f32) + Some(Point2D::new(x as f32, y as f32)) } fn line_to(&mut self, point: Point2D<f32>) { azure_hl::PathBuilder::line_to(self, point as Point2D<AzFloat>); |