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 two bugs in linear gradient rendering. #175

Merged
merged 1 commit into from Feb 5, 2016

Conversation

@pcwalton
Copy link
Collaborator

pcwalton commented Feb 5, 2016

  1. When the first stop of a gradient was not at position 0%, WebRender
    did not draw the solid color from 0% to that first stop, in violation
    of CSS-IMAGES-3.
  2. Certain gradient angles would cause the segments to be too narrow.
    This patch fixes this by correcting the trigonometric calculations.

Closes #161.

1. When the first stop of a gradient was not at position 0%, WebRender
   did not draw the solid color from 0% to that first stop, in violation
   of CSS-IMAGES-3.

2. Certain gradient angles would cause the segments to be too narrow.
   This patch fixes this by correcting the trigonometric calculations.

Closes #161.
glennw added a commit that referenced this pull request Feb 5, 2016
Fix two bugs in linear gradient rendering.
@glennw glennw merged commit 45bf616 into servo:master Feb 5, 2016
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.

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