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

Unified Diff: third_party/WebKit/LayoutTests/compositing/will-change/containing-block-added.html

Issue 1413823005: Invalidate objects when containing block changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/LayoutTests/compositing/will-change/containing-block-added.html
diff --git a/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-added.html b/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-added.html
index 37498dc6b85290d92dafa5ccf0ff39404f7d7272..abe383cc00cd8f12766477758c03e92b7bf1de67 100644
--- a/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-added.html
+++ b/third_party/WebKit/LayoutTests/compositing/will-change/containing-block-added.html
@@ -21,26 +21,16 @@
background-color: green
}
</style>
- <script type="text/javascript">
- if (window.testRunner) {
- testRunner.waitUntilDone();
- }
-
- function doTest()
+ <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+ <script>
+ function repaintTest()
{
- if (window.internals) {
- window.internals.forceCompositingUpdate(document);
- }
// Adding "will-change: -webkit-transform" to the container div should
// make this div become the containing block for its fixed position
// descendant.
- document.getElementById("container").style.willChange = "-webkit-transform";
- if (window.testRunner) {
- testRunner.notifyDone();
- }
+ document.getElementById("container").style.transform = 'translateZ(0)'; // willChange = "transform";
chrishtr 2015/10/30 18:28:18 It's not possible to set willChange directly?
Xianzhu 2015/10/30 19:15:28 Oops, I forgot to revert a temporary local change
}
-
- window.addEventListener('load', doTest, false);
+ onload = runRepaintAndPixelTest;
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698