Fix clipping of content outside the bounds of the window.
https://codereview.chromium.org/899753003 incorrectly passed down the RenderView's clipping rect all the down through transforms instead of using the one from the LayerPaintingInfo, which is adjusted for transforms as you recurse down the tree. TBR=abarth@chromium.org Review URL: https://codereview.chromium.org/957643002
This commit is contained in:
parent
aa1d4db99c
commit
f5c662cbbd
@ -0,0 +1,14 @@
|
||||
<import src="../resources/run-after-display.sky" />
|
||||
<img src="http://storage.googleapis.com/mojo/sky-pngs/77c37e9285340992042008792e29c861306cdc9e" />
|
||||
<script>
|
||||
import "dart:sky";
|
||||
import "dart:sky.internals" as internals;
|
||||
|
||||
void main() {
|
||||
window.addEventListener('load', (_) {
|
||||
runAfterDisplay(() {
|
||||
internals.notifyTestComplete("");
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
28
engine/src/flutter/tests/clipping/clipping-transforms.sky
Normal file
28
engine/src/flutter/tests/clipping/clipping-transforms.sky
Normal file
@ -0,0 +1,28 @@
|
||||
<import src="../resources/run-after-display.sky" />
|
||||
|
||||
<style>
|
||||
transformer {
|
||||
transform: translateY(-500px);
|
||||
}
|
||||
child {
|
||||
opacity: 0.5;
|
||||
background-image: linear-gradient(green, yellow);
|
||||
height: 1900px;
|
||||
}
|
||||
</style>
|
||||
<transformer>
|
||||
<child />
|
||||
</transformer>
|
||||
|
||||
<script>
|
||||
import "dart:sky";
|
||||
import "dart:sky.internals" as internals;
|
||||
|
||||
void main() {
|
||||
window.addEventListener('load', (_) {
|
||||
runAfterDisplay(() {
|
||||
internals.notifyTestComplete("");
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user