| 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;
|
| +}
|
|
|