Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html

Issue 203463007: Recompute overflow after transform changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html
diff --git a/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html b/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html
new file mode 100644
index 0000000000000000000000000000000000000000..8c402a388256bb8f82b04094cfd9ca457812bfbf
--- /dev/null
+++ b/LayoutTests/compositing/repaint/should-not-repaint-composited-transform.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+#composited-box {
+ width: 100px;
+ height: 100px;
+ border: solid 1px black;
+ -webkit-transform:translate3D(0, 0, 0);
+}
+</style>
+<div id="composited-box"></div>
+<pre id="console"></pre>
+<script src="../../resources/run-after-display.js"></script>
+<script>
+ function doTest() {
+ internals.startTrackingRepaints(document);
+ document.getElementById("composited-box").style.webkitTransform = "translate3D(100px, 100px, 0)";
+ document.getElementById("console").textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
+ testRunner.notifyDone();
+ }
+
+ if (window.testRunner && window.internals) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ runAfterDisplay(doTest);
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698