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:
Ojan Vafai 2015-02-24 20:40:10 -08:00
parent aa1d4db99c
commit f5c662cbbd
2 changed files with 42 additions and 0 deletions

View File

@ -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>

View 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>