1 Basic repaint test for squashed layers. The entire squashing layer should not need repainting when only a portion of it is invalidated. Test interactively by using --show-paint-rects and hovering over elements to change their color.
3 CASE 1, original layer tree:
9 "contentsOpaque": true,
17 "contentsOpaque": true,
19 "backgroundColor": "#808080"
22 "position": [140, 140],
32 CASE 2, overlap1 changes color:
38 "contentsOpaque": true,
46 "contentsOpaque": true,
48 "backgroundColor": "#808080"
51 "position": [140, 140],
65 CASE 3, overlap1 and overlap2 change color:
71 "contentsOpaque": true,
79 "contentsOpaque": true,
81 "backgroundColor": "#808080"
84 "position": [140, 140],
100 CASE 4, overlap2 and overlap3 change color:
102 "bounds": [800, 600],
105 "bounds": [800, 600],
106 "contentsOpaque": true,
107 "drawsContent": true,
112 "position": [60, 60],
113 "bounds": [100, 100],
114 "contentsOpaque": true,
115 "drawsContent": true,
116 "backgroundColor": "#808080"
119 "position": [140, 140],
120 "bounds": [260, 260],
121 "drawsContent": true,
123 [160, 160, 100, 100],
124 [160, 160, 100, 100],
135 CASE 5, overlap3 and overlap1 change color:
137 "bounds": [800, 600],
140 "bounds": [800, 600],
141 "contentsOpaque": true,
142 "drawsContent": true,
147 "position": [60, 60],
148 "bounds": [100, 100],
149 "contentsOpaque": true,
150 "drawsContent": true,
151 "backgroundColor": "#808080"
154 "position": [140, 140],
155 "bounds": [260, 260],
156 "drawsContent": true,
158 [160, 160, 100, 100],
159 [160, 160, 100, 100],