| Index: third_party/WebKit/LayoutTests/compositing/change-preferCompositingToLCDText-setting.html
|
| diff --git a/third_party/WebKit/LayoutTests/compositing/change-preferCompositingToLCDText-setting.html b/third_party/WebKit/LayoutTests/compositing/change-preferCompositingToLCDText-setting.html
|
| index 816565142a5b959f5fde83b39484285fcb0efbbc..066061559db759b61dd0346466c6084c9e21ab2c 100644
|
| --- a/third_party/WebKit/LayoutTests/compositing/change-preferCompositingToLCDText-setting.html
|
| +++ b/third_party/WebKit/LayoutTests/compositing/change-preferCompositingToLCDText-setting.html
|
| @@ -20,17 +20,14 @@
|
|
|
| var t = async_test("Check that the preferCompositingToLCDText flag results in compositing");
|
|
|
| -function isUsingCompositedScrolling(layer) {
|
| - layer = layer || JSON.parse(window.internals.layerTreeAsText(document));
|
| - if (layer.bounds[1] == 1000)
|
| - return true;
|
| - if (layer.children) {
|
| - for (var i = 0; i < layer.children.length; i++) {
|
| - if (isUsingCompositedScrolling(layer.children[i]))
|
| - return true;
|
| - }
|
| - }
|
| - return false;
|
| +function isUsingCompositedScrolling() {
|
| + var layers = JSON.parse(window.internals.layerTreeAsText(document));
|
| + var found = false;
|
| + layers["layers"].forEach(function(layer) {
|
| + if (layer.bounds[1] == 1000)
|
| + found = true;
|
| + });
|
| + return found;
|
| }
|
|
|
| window.onload = function() {
|
|
|