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 #2189 - mrobinson:updated-2177, r=glennw
Fixed inner rectangle computation for transformed clips <!-- 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/2189) <!-- Reviewable:end -->
- Loading branch information
Showing
5 changed files
with
80 additions
and
13 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,35 @@ | ||
# Test that transformed content is clipped properly by clips with a different transform. | ||
--- | ||
root: | ||
items: | ||
- | ||
bounds: [0, 0, 0, 0] | ||
"clip-rect": [0, 0, 0, 0] | ||
"clip-and-scroll": 0 | ||
type: "stacking-context" | ||
transform: rotate(45) translate(200, 0) | ||
items: | ||
- | ||
bounds: [0, 0, 300, 300] | ||
"clip-rect": [0, 0, 300, 300] | ||
"clip-and-scroll": 0 | ||
type: rect | ||
color: red | ||
- | ||
bounds: [0, 0, 300, 300] | ||
"clip-rect": [0, 0, 300, 300] | ||
"clip-and-scroll": 0 | ||
type: clip | ||
id: 5 | ||
- | ||
bounds: [0, 0, 0, 0] | ||
"clip-rect": [0, 0, 0, 0] | ||
"clip-and-scroll": 5 | ||
type: "stacking-context" | ||
transform: rotate(-45) translate(-300, 0) | ||
items: | ||
- | ||
bounds: [0, 0, 1598, 1200] | ||
"clip-rect": [0, 0, 1598, 1200] | ||
type: rect | ||
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
== clip-mode.yaml clip-mode.png | ||
== clip-ellipse.yaml clip-ellipse.png | ||
|
||
== clip-45-degree-rotation.yaml clip-45-degree-rotation-ref.png |