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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d79d219e332b1a69d257344fdce4b3440cc1ac3c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js |
@@ -0,0 +1,9 @@ |
+function isUsingCompositedScrolling(layers) { |
+ var foundScrollingContentsLayer = false; |
+ layers["layers"].forEach(function(layer) { |
+ if (layer.name == "Scrolling Contents Layer") |
+ foundScrollingContentsLayer = true; |
+ }); |
+ |
+ return foundScrollingContentsLayer; |
+} |