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],
64 CASE 3, overlap1 and overlap2 change color:
70 "contentsOpaque": true,
78 "contentsOpaque": true,
80 "backgroundColor": "#808080"
83 "position": [140, 140],
97 CASE 4, overlap2 and overlap3 change color:
102 "bounds": [800, 600],
103 "contentsOpaque": true,
104 "drawsContent": true,
109 "position": [60, 60],
110 "bounds": [100, 100],
111 "contentsOpaque": true,
112 "drawsContent": true,
113 "backgroundColor": "#808080"
116 "position": [140, 140],
117 "bounds": [260, 260],
118 "drawsContent": true,
120 [160, 160, 100, 100],
130 CASE 5, overlap3 and overlap1 change color:
132 "bounds": [800, 600],
135 "bounds": [800, 600],
136 "contentsOpaque": true,
137 "drawsContent": true,
142 "position": [60, 60],
143 "bounds": [100, 100],
144 "contentsOpaque": true,
145 "drawsContent": true,
146 "backgroundColor": "#808080"
149 "position": [140, 140],
150 "bounds": [260, 260],
151 "drawsContent": true,
153 [160, 160, 100, 100],