Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Enable clip rect for 2d transforms. Fixes clipping with child scrollable layers that have transforms. - #199

Merged
bors-servo merged 1 commit into
servo:masterfrom
glennw:2d-clipping
Aug 10, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
glennw:2d-clipping

Conversation

@glennw

@glennw glennw commented Aug 10, 2015

Copy link
Copy Markdown
Member

Review on Reviewable

@glennw

glennw commented Aug 10, 2015

Copy link
Copy Markdown
Member Author

r? @pcwalton

@metajack metajack mentioned this pull request Aug 10, 2015
28 of 40 tasks
Comment thread src/rendergl.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. How does the code below differ from the logic used to set the is_3d flag?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_3d currently just checks that the transform is non-identity. Previously any transform in layers meant 3d (since 2d transforms are handled in the same layer). I'll update the is_3d variable to be clearer.

@pcwalton

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown

📌 Commit 96ad5c3 has been approved by pcwalton

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit 96ad5c3 with merge c4fa565...

bors-servo pushed a commit that referenced this pull request Aug 10, 2015
Enable clip rect for 2d transforms. Fixes clipping with child scrollable layers that have transforms.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-layers/199)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown

☀️ Test successful - travis

@bors-servo
bors-servo merged commit 96ad5c3 into servo:master Aug 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants