| OLD | NEW |
| 1 function isUsingCompositedScrolling(layers) { | 1 function isUsingCompositedScrolling(layers) { |
| 2 var foundScrollingContentsLayer = false; | 2 var foundScrollingContentsLayer = false; |
| 3 layers["layers"].forEach(function(layer) { | 3 layers["layers"].forEach(function(layer) { |
| 4 if (layer.name == "Scrolling Contents Layer") | 4 if (layer.name == "Scrolling Contents Layer") |
| 5 foundScrollingContentsLayer = true; | 5 foundScrollingContentsLayer = true; |
| 6 }); | 6 }); |
| 7 | 7 |
| 8 return foundScrollingContentsLayer; | 8 return foundScrollingContentsLayer; |
| 9 } | 9 } |
| 10 |
| 11 function hasOpaqueCompositedScrollingContentsLayer(layers) { |
| 12 var found = false; |
| 13 layers["layers"].forEach(function(layer) { |
| 14 if (layer.name == "Scrolling Contents Layer") |
| 15 found = found || layer.contentsOpaque; |
| 16 }); |
| 17 return found; |
| 18 } |
| 19 |
| 20 function hasNotOpaqueCompositedScrollingContentsLayer(layers) { |
| 21 var found = false; |
| 22 layers["layers"].forEach(function(layer) { |
| 23 if (layer.name == "Scrolling Contents Layer") |
| 24 found = found || !layer.contentsOpaque; |
| 25 }); |
| 26 return found; |
| 27 } |
| OLD | NEW |