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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-opaque-background.html

Issue 2397333002: Change layerTreeAsText to default to layer lists. (Closed)
Patch Set: none Created 4 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/overflow/overflow-scroll-with-opaque-background.html
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-opaque-background.html b/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-opaque-background.html
index 1b51afad82ea0e2c21f9ebbf2db25d4a6dd3ac39..061f6f0808a2ba21cc54bc671399a4ac5e7fffb5 100644
--- a/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-opaque-background.html
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-opaque-background.html
@@ -1,3 +1,5 @@
+<!doctype HTML>
+<script src="resources/composited-scroll.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
@@ -5,18 +7,6 @@ if (window.testRunner)
if (window.internals)
internals.runtimeFlags.compositeOpaqueScrollersEnabled = true;
-function hasOpaqueCompositedScrollingContentsLayer(layer) {
- if (layer.name == "Scrolling Contents Layer")
- return layer.contentsOpaque;
- if (layer.children) {
- for (var i = 0; i < layer.children.length; i++) {
- if (hasOpaqueCompositedScrollingContentsLayer(layer.children[i]))
- return true;
- }
- }
- return false;
-}
-
onload = function() {
if (!window.testRunner || !window.internals)
return;

Powered by Google App Engine
This is Rietveld 408576698