Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix canvas arc path WPT test failures #25444

Merged
merged 1 commit into from Jan 8, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Ensure there's a subpath for the first control point

  • Loading branch information
pylbrecht committed Jan 7, 2020
commit 215a2c7e605e17afb5d74deb3e5ffc08cee856fd
@@ -798,7 +798,10 @@ impl<'a> CanvasData<'a> {
pub fn arc_to(&mut self, cp1: &Point2D<f32>, cp2: &Point2D<f32>, radius: f32) {
let cp0 = match self.path_builder().current_point() {
Some(p) => p,
None => return,
None => {
self.path_builder().move_to(cp1);
cp1.clone()
},
};
let cp1 = *cp1;
let cp2 = *cp2;

This file was deleted.

This file was deleted.

This file was deleted.

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.