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

Sync changes from mozilla-central gfx/wr #3996

Merged
merged 2 commits into from Jun 26, 2020
Merged

Conversation

@moz-gfx
Copy link

moz-gfx commented Jun 26, 2020

No description provided.

Glenn Watson and others added 2 commits Jun 26, 2020
In various parts of the picture and mask code, we were casting
the `clipped` rect to i32 (after rounding out). However, this
can cause overflow panics when the origin of the rect is too big.

Instead, treat the origin as f32 (which it was generally being
converted to anyway), and only cast the size part to be i32 as
required. This is safe since we know that the size has been
clipped to the visible screen, so will always be safe to cast
to i32.

Differential Revision: https://phabricator.services.mozilla.com/D80968

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/4114f7f226439069ee24a52de4f6cd856beaa4f5
@moz-gfx
Copy link
Author

moz-gfx commented Jun 26, 2020

@bors-servo r=auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 26, 2020

📌 Commit 3613707 has been approved by auto

@bors-servo
Copy link
Contributor

bors-servo commented Jun 26, 2020

Testing commit 3613707 with merge a1a252f...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 26, 2020

☀️ Test successful - status-taskcluster
Approved by: auto
Pushing a1a252f to master...

@bors-servo bors-servo merged commit a1a252f into servo:master Jun 26, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
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.

None yet

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