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

Unified Diff: LayoutTests/compositing/background-color/background-color-change-to-text-expected.html

Issue 63943006: Re-enable solid background color optimization for composited layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add window.internals.forceCompositingUpdate(document) to webgl test to avoid flaky Created 7 years, 1 month 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/background-color/background-color-change-to-text-expected.html
diff --git a/LayoutTests/compositing/background-color/background-color-change-to-text-expected.html b/LayoutTests/compositing/background-color/background-color-change-to-text-expected.html
index addc40b09465484676662695ba03c9528507cb1e..3c903d3a3ad243111883c553280f6bb43b1abf8e 100644
--- a/LayoutTests/compositing/background-color/background-color-change-to-text-expected.html
+++ b/LayoutTests/compositing/background-color/background-color-change-to-text-expected.html
@@ -6,38 +6,24 @@
width: 200px;
height: 200px;
display: block;
- background-color: green;
+ background-color: red;
+ }
+ .blue {
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+ display: block;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
-<script type="text/javascript" charset="utf-8">
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsTextWithPixelResults();
- }
- function doTest()
- {
- var bg = document.getElementById("background");
-
- window.setTimeout(function() {
- // Change the layer to become background only.
- bg.innerHTML = "text";
- if (window.testRunner) {
- window.setTimeout(function() {
- testRunner.notifyDone();
- }, 0);
- }
- }, 0);
- }
-
- window.addEventListener('load', doTest, false);
-</script>
</head>
<body>
-<!-- When the test is done, there should only be a green square on the page -->
-<div id="background"></div>
+<div id="background">text
+ <div class="blue">
+ </div>
+</div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698