Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / squashing / add-remove-squashed-layers-expected.txt
blob42c3afcae8e35e77219a32b9f8b658f1c115b0b1
1 Test that layers can be nicely added or removed from a squashed layer, without unnecessary repaints on any layer. Click anywhere to test interactively; keep clicking to proceed through the test.
3 CASE 1, original layer tree with overlap1 and overlap2:
5   "bounds": [800, 600],
6   "children": [
7     {
8       "bounds": [800, 600],
9       "contentsOpaque": true,
10       "drawsContent": true,
11       "children": [
12         {
13           "shouldFlattenTransform": false,
14           "children": [
15             {
16               "position": [60, 60],
17               "bounds": [400, 400],
18               "contentsOpaque": true,
19               "drawsContent": true,
20               "backgroundColor": "#808080"
21             },
22             {
23               "position": [140, 140],
24               "bounds": [180, 180],
25               "drawsContent": true
26             }
27           ]
28         }
29       ]
30     }
31   ]
33 CASE 2, overlap3 gets added:
35   "bounds": [800, 600],
36   "children": [
37     {
38       "bounds": [800, 600],
39       "contentsOpaque": true,
40       "drawsContent": true,
41       "children": [
42         {
43           "shouldFlattenTransform": false,
44           "children": [
45             {
46               "position": [60, 60],
47               "bounds": [400, 400],
48               "contentsOpaque": true,
49               "drawsContent": true,
50               "backgroundColor": "#808080"
51             },
52             {
53               "position": [140, 140],
54               "bounds": [260, 260],
55               "drawsContent": true,
56               "repaintRects": [
57                 [160, 160, 100, 100]
58               ]
59             }
60           ]
61         }
62       ]
63     }
64   ]
66 CASE 3, overlap2 gets removed. Since this does not resize the layer, there should only be a repaint of overlap2:
68   "bounds": [800, 600],
69   "children": [
70     {
71       "bounds": [800, 600],
72       "contentsOpaque": true,
73       "drawsContent": true,
74       "children": [
75         {
76           "shouldFlattenTransform": false,
77           "children": [
78             {
79               "position": [60, 60],
80               "bounds": [400, 400],
81               "contentsOpaque": true,
82               "drawsContent": true,
83               "backgroundColor": "#808080"
84             },
85             {
86               "position": [140, 140],
87               "bounds": [260, 260],
88               "drawsContent": true,
89               "repaintRects": [
90                 [80, 80, 100, 100]
91               ]
92             }
93           ]
94         }
95       ]
96     }
97   ]
99 CASE 4, overlap1 gets removed:
101   "bounds": [800, 600],
102   "children": [
103     {
104       "bounds": [800, 600],
105       "contentsOpaque": true,
106       "drawsContent": true,
107       "children": [
108         {
109           "shouldFlattenTransform": false,
110           "children": [
111             {
112               "position": [60, 60],
113               "bounds": [400, 400],
114               "contentsOpaque": true,
115               "drawsContent": true,
116               "backgroundColor": "#808080"
117             },
118             {
119               "position": [300, 300],
120               "bounds": [100, 100],
121               "drawsContent": true,
122               "repaintRects": [
123                 [160, 160, 100, 100],
124                 [0, 0, 100, 100],
125                 [0, 0, 100, 100]
126               ]
127             }
128           ]
129         }
130       ]
131     }
132   ]
134 CASE 5, overlap2 gets added back:
136   "bounds": [800, 600],
137   "children": [
138     {
139       "bounds": [800, 600],
140       "contentsOpaque": true,
141       "drawsContent": true,
142       "children": [
143         {
144           "shouldFlattenTransform": false,
145           "children": [
146             {
147               "position": [60, 60],
148               "bounds": [400, 400],
149               "contentsOpaque": true,
150               "drawsContent": true,
151               "backgroundColor": "#808080"
152             },
153             {
154               "position": [220, 220],
155               "bounds": [180, 180],
156               "drawsContent": true,
157               "repaintRects": [
158                 [80, 80, 100, 100],
159                 [0, 0, 100, 100],
160                 [0, 0, 100, 100],
161                 [0, 0, 100, 100]
162               ]
163             }
164           ]
165         }
166       ]
167     }
168   ]
170 CASE 6, overlap1 gets added back, and overlap3 gets removed:
172   "bounds": [800, 600],
173   "children": [
174     {
175       "bounds": [800, 600],
176       "contentsOpaque": true,
177       "drawsContent": true,
178       "children": [
179         {
180           "shouldFlattenTransform": false,
181           "children": [
182             {
183               "position": [60, 60],
184               "bounds": [400, 400],
185               "contentsOpaque": true,
186               "drawsContent": true,
187               "backgroundColor": "#808080"
188             },
189             {
190               "position": [140, 140],
191               "bounds": [180, 180],
192               "drawsContent": true,
193               "repaintRects": [
194                 [80, 80, 100, 100],
195                 [80, 80, 100, 100],
196                 [0, 0, 100, 100],
197                 [0, 0, 100, 100],
198                 [0, 0, 100, 100]
199               ]
200             }
201           ]
202         }
203       ]
204     }
205   ]