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

Use stencil buffer for clipping iframes and aabb tree nodes. #180

Merged
merged 1 commit into from Feb 9, 2016
Merged

Conversation

@glennw
Copy link
Member

glennw commented Feb 9, 2016

(This allows correct clipping for these cases when transforms are involved).

This is a partial fix for #177 (the other part relies on changes to layout).

@glennw
Copy link
Member Author

glennw commented Feb 9, 2016

r? @pcwalton

(This relies on a related PR in servo before it can be merged).

@pcwalton
Copy link
Collaborator

pcwalton commented Feb 9, 2016

Could we file a followup to add the number of stencil buffer changes to debug_render? It would be nice to be able to diagnose the problem quickly if we see pages in the wild that thrash the stencil buffer.

src/util.rs Outdated
self.origin.x <= other.origin.x &&
self.origin.y <= other.origin.y &&
self.origin.x + self.size.width >= other.origin.x + other.size.width &&
self.origin.y + self.size.height >= other.origin.y + other.size.height

This comment has been minimized.

@pcwalton

pcwalton Feb 9, 2016

Collaborator

nit: Could use max_x() and max_y() I think

@pcwalton
Copy link
Collaborator

pcwalton commented Feb 9, 2016

Looks good.

@glennw
Copy link
Member Author

glennw commented Feb 9, 2016

(This allows correct clipping for these cases when transforms are involved).

This is a partial fix for #177 (the other part relies on changes to layout).
@glennw glennw force-pushed the stencil branch from 90b1680 to 29c16a0 Feb 9, 2016
glennw added a commit that referenced this pull request Feb 9, 2016
Use stencil buffer for clipping iframes and aabb tree nodes.
@glennw glennw merged commit f405653 into master Feb 9, 2016
@glennw glennw deleted the stencil branch Feb 23, 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.

None yet

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