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 Rect::contains #40

Merged
merged 1 commit into from Jul 7, 2014
Merged

Fix Rect::contains #40

merged 1 commit into from Jul 7, 2014

Conversation

@zwarich
Copy link
Contributor

zwarich commented Jul 4, 2014

For some reason, I managed to convince myself and others that
Rect::contains should be inclusive of both edges, but that's clearly
wrong, as then a Rect with size (1, 1) has an area of 4.

For some reason, I managed to convince myself and others that
Rect::contains should be inclusive of both edges, but that's clearly
wrong, as then a Rect with size (1, 1) has an area of 4.
mbrubeck added a commit that referenced this pull request Jul 7, 2014
Fix Rect::contains. r=mbrubeck
@mbrubeck mbrubeck merged commit 862af73 into servo:master Jul 7, 2014
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

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