| OLD | NEW |
| 1 Test that layers can be nicely added or removed from a squashed layer, without u
nnecessary repaints on any layer. Click anywhere to test interactively; keep cli
cking to proceed through the test. | 1 Test that layers can be nicely added or removed from a squashed layer, without u
nnecessary repaints on any layer. Click anywhere to test interactively; keep cli
cking to proceed through the test. |
| 2 | 2 |
| 3 CASE 1, original layer tree with overlap1 and overlap2: | 3 CASE 1, original layer tree with overlap1 and overlap2: |
| 4 { | 4 { |
| 5 "bounds": [800, 600], | 5 "bounds": [800, 600], |
| 6 "children": [ | 6 "children": [ |
| 7 { | 7 { |
| 8 "bounds": [800, 600], | 8 "bounds": [800, 600], |
| 9 "contentsOpaque": true, | 9 "contentsOpaque": true, |
| 10 "drawsContent": true, | 10 "drawsContent": true, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 "drawsContent": true, | 150 "drawsContent": true, |
| 151 "backgroundColor": "#808080" | 151 "backgroundColor": "#808080" |
| 152 }, | 152 }, |
| 153 { | 153 { |
| 154 "position": [220, 220], | 154 "position": [220, 220], |
| 155 "bounds": [180, 180], | 155 "bounds": [180, 180], |
| 156 "drawsContent": true, | 156 "drawsContent": true, |
| 157 "repaintRects": [ | 157 "repaintRects": [ |
| 158 [80, 80, 100, 100], | 158 [80, 80, 100, 100], |
| 159 [0, 0, 100, 100], | 159 [0, 0, 100, 100], |
| 160 [0, 0, 100, 100], | |
| 161 [0, 0, 100, 100] | 160 [0, 0, 100, 100] |
| 162 ] | 161 ] |
| 163 } | 162 } |
| 164 ] | 163 ] |
| 165 } | 164 } |
| 166 ] | 165 ] |
| 167 } | 166 } |
| 168 ] | 167 ] |
| 169 } | 168 } |
| 170 CASE 6, overlap1 gets added back, and overlap3 gets removed: | 169 CASE 6, overlap1 gets added back, and overlap3 gets removed: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 187 "backgroundColor": "#808080" | 186 "backgroundColor": "#808080" |
| 188 }, | 187 }, |
| 189 { | 188 { |
| 190 "position": [140, 140], | 189 "position": [140, 140], |
| 191 "bounds": [180, 180], | 190 "bounds": [180, 180], |
| 192 "drawsContent": true, | 191 "drawsContent": true, |
| 193 "repaintRects": [ | 192 "repaintRects": [ |
| 194 [80, 80, 100, 100], | 193 [80, 80, 100, 100], |
| 195 [80, 80, 100, 100], | 194 [80, 80, 100, 100], |
| 196 [0, 0, 100, 100], | 195 [0, 0, 100, 100], |
| 197 [0, 0, 100, 100], | |
| 198 [0, 0, 100, 100] | 196 [0, 0, 100, 100] |
| 199 ] | 197 ] |
| 200 } | 198 } |
| 201 ] | 199 ] |
| 202 } | 200 } |
| 203 ] | 201 ] |
| 204 } | 202 } |
| 205 ] | 203 ] |
| 206 } | 204 } |
| 207 | 205 |
| OLD | NEW |