-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #1693 - mephisto41:transform3d-clipping, r=kvark
If the transform contains perspective component, the clip rect don't affect by this transform. When calculating the LCCR. If current transform or parent transform has perspective component, then we shouldn't transform the LCCR by this transform because we only consider 2d component for LCCR. Once the perspective component is presence, the LCCR would be wrong. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1693) <!-- Reviewable:end -->
- Loading branch information
Showing
5 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
root: | ||
items: | ||
- type: stacking-context | ||
bounds: 0 0 1024 768 | ||
items: | ||
- type: rect | ||
bounds: 0 0 1024 768 | ||
color: green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
root: | ||
items: | ||
- type: stacking-context | ||
bounds: 0 0 1024 768 | ||
items: | ||
- type: rect | ||
bounds: 0 0 1024 768 | ||
color: red | ||
- type: stacking-context | ||
bounds: 0 0 1024 768 | ||
transform-style: preserve-3d | ||
perspective: 300 | ||
items: | ||
- type: stacking-context | ||
bounds: 0 0 1024 768 | ||
# translate-Z(-300) scale(2) | ||
transform: 2 0 0 0 0 2 0 0 0 0 2 0 0 0 -300 1 | ||
items: | ||
- type: rect | ||
bounds: 0 0 1024 768 | ||
color: green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters