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

Side by Side 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698