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:
15 (position 60.00 60.00)
16 (bounds 100.00 100.00)
19 (backgroundColor #808080)
22 (position 140.00 140.00)
23 (bounds 260.00 260.00)
32 CASE 2, overlap1 changes color:
34 (bounds 800.00 600.00)
37 (bounds 800.00 600.00)
44 (position 60.00 60.00)
45 (bounds 100.00 100.00)
48 (backgroundColor #808080)
51 (position 140.00 140.00)
52 (bounds 260.00 260.00)
55 (rect 0.00 0.00 100.00 100.00)
56 (rect 0.00 0.00 100.00 100.00)
65 CASE 3, overlap1 and overlap2 change color:
67 (bounds 800.00 600.00)
70 (bounds 800.00 600.00)
77 (position 60.00 60.00)
78 (bounds 100.00 100.00)
81 (backgroundColor #808080)
84 (position 140.00 140.00)
85 (bounds 260.00 260.00)
88 (rect 80.00 80.00 100.00 100.00)
89 (rect 80.00 80.00 100.00 100.00)
90 (rect 0.00 0.00 100.00 100.00)
91 (rect 0.00 0.00 100.00 100.00)
100 CASE 4, overlap2 and overlap3 change color:
102 (bounds 800.00 600.00)
105 (bounds 800.00 600.00)
112 (position 60.00 60.00)
113 (bounds 100.00 100.00)
116 (backgroundColor #808080)
119 (position 140.00 140.00)
120 (bounds 260.00 260.00)
123 (rect 160.00 160.00 100.00 100.00)
124 (rect 160.00 160.00 100.00 100.00)
125 (rect 80.00 80.00 100.00 100.00)
126 (rect 80.00 80.00 100.00 100.00)
135 CASE 5, overlap3 and overlap1 change color:
137 (bounds 800.00 600.00)
140 (bounds 800.00 600.00)
147 (position 60.00 60.00)
148 (bounds 100.00 100.00)
151 (backgroundColor #808080)
154 (position 140.00 140.00)
155 (bounds 260.00 260.00)
158 (rect 160.00 160.00 100.00 100.00)
159 (rect 160.00 160.00 100.00 100.00)
160 (rect 0.00 0.00 100.00 100.00)
161 (rect 0.00 0.00 100.00 100.00)