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

Return false from CanvasState::is_point_in_path for NaN/infinite values #24573

Merged
merged 1 commit into from Oct 29, 2019

Conversation

@teapotd
Copy link
Contributor

teapotd commented Oct 28, 2019

Servo doesn't pass WPT test /2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html when built with raqote (see here).
This change adds a missing check for NaN/infinite values in CanvasState::is_point_in_path and fixes this.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #24540
  • These changes do not require tests because WPT tests cover it
@highfive
Copy link

highfive commented Oct 28, 2019

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @nox (or someone else) soon.

@highfive
Copy link

highfive commented Oct 28, 2019

Heads up! This PR modifies the following files:

@highfive
Copy link

highfive commented Oct 28, 2019

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@jdm
Copy link
Member

jdm commented Oct 28, 2019

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Oct 28, 2019

📌 Commit 35a48a7 has been approved by jdm

@highfive highfive assigned jdm and unassigned nox Oct 28, 2019
@bors-servo
Copy link
Contributor

bors-servo commented Oct 28, 2019

Testing commit 35a48a7 with merge 1b77e42...

bors-servo added a commit that referenced this pull request Oct 28, 2019
Return false from CanvasState::is_point_in_path for NaN/infinite values

Servo doesn't pass WPT test `/2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html` when built with raqote (see [here](#24470 (comment))).
This change adds a missing check for NaN/infinite values in `CanvasState::is_point_in_path` and fixes this.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24540
- [X] These changes do not require tests because WPT tests cover it
@bors-servo
Copy link
Contributor

bors-servo commented Oct 29, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 1b77e42 to master...

@bors-servo bors-servo merged commit 35a48a7 into servo:master Oct 29, 2019
2 checks passed
2 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
homu Test successful
Details
@teapotd teapotd deleted the teapotd:is-point-in-path-nan branch Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.