mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Auto merge of #25444 - pylbrecht:raqote, r=jdm
Fix canvas arc path WPT test failures <!-- Please describe your changes on the following line: --> --- <!-- 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 - [x] These changes fix part of #25331 (GitHub issue number if applicable) <!-- 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. -->
This commit is contained in:
commit
bd636b0e6c
4 changed files with 4 additions and 13 deletions
|
@ -798,7 +798,10 @@ impl<'a> CanvasData<'a> {
|
||||||
pub fn arc_to(&mut self, cp1: &Point2D<f32>, cp2: &Point2D<f32>, radius: f32) {
|
pub fn arc_to(&mut self, cp1: &Point2D<f32>, cp2: &Point2D<f32>, radius: f32) {
|
||||||
let cp0 = match self.path_builder().current_point() {
|
let cp0 = match self.path_builder().current_point() {
|
||||||
Some(p) => p,
|
Some(p) => p,
|
||||||
None => return,
|
None => {
|
||||||
|
self.path_builder().move_to(cp1);
|
||||||
|
cp1.clone()
|
||||||
|
},
|
||||||
};
|
};
|
||||||
let cp1 = *cp1;
|
let cp1 = *cp1;
|
||||||
let cp2 = *cp2;
|
let cp2 = *cp2;
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[2d.path.arcTo.ensuresubpath.2.html]
|
|
||||||
[If there is no subpath, the first control point is added]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[2d.path.arcTo.ensuresubpath.2.html]
|
|
||||||
[If there is no subpath, the first control point is added]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[2d.path.arcTo.ensuresubpath.2.worker.html]
|
|
||||||
[If there is no subpath, the first control point is added]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue