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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js

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/resources/composited-scroll.js
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js b/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js
index d79d219e332b1a69d257344fdce4b3440cc1ac3c..05e153bbb81f189a7069c241135c8fd4e3778cf0 100644
--- a/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js
@@ -7,3 +7,21 @@ function isUsingCompositedScrolling(layers) {
return foundScrollingContentsLayer;
}
+
+function hasOpaqueCompositedScrollingContentsLayer(layers) {
+ var found = false;
+ layers["layers"].forEach(function(layer) {
+ if (layer.name == "Scrolling Contents Layer")
+ found = found || layer.contentsOpaque;
+ });
+ return found;
+}
+
+function hasNotOpaqueCompositedScrollingContentsLayer(layers) {
+ var found = false;
+ layers["layers"].forEach(function(layer) {
+ if (layer.name == "Scrolling Contents Layer")
+ found = found || !layer.contentsOpaque;
+ });
+ return found;
+}

Powered by Google App Engine
This is Rietveld 408576698