| OLD | NEW |
| 1 This tests that squashed layers' offset from renderer is updated properly. If no
t properly updated, the two divs will appear to be aligned vertically in the pix
el results, while really the blue div ('squashed') should be offset 100px left o
f the green ('host'). | 1 This tests that squashed layers' offset from renderer is updated properly. If no
t properly updated, the two divs will appear to be aligned vertically in the pix
el results, while really the blue div ('squashed') should be offset 100px left o
f the green ('host'). |
| 2 | 2 |
| 3 { | 3 { |
| 4 "name": "Content Root Layer", | 4 "layers": [ |
| 5 "bounds": [800, 600], | |
| 6 "children": [ | |
| 7 { | 5 { |
| 8 "name": "LayoutView #document", | 6 "name": "LayoutView #document", |
| 9 "bounds": [800, 600], | 7 "bounds": [800, 600], |
| 10 "contentsOpaque": true, | 8 "contentsOpaque": true, |
| 9 "drawsContent": true |
| 10 }, |
| 11 { |
| 12 "name": "LayoutBlockFlow (positioned) DIV id='background'", |
| 13 "position": [8, 50], |
| 14 "bounds": [100, 100], |
| 15 "contentsOpaque": true, |
| 11 "drawsContent": true, | 16 "drawsContent": true, |
| 12 "children": [ | 17 "backgroundColor": "#FFFF00" |
| 13 { | 18 }, |
| 14 "name": "LayoutBlockFlow (positioned) DIV id='background'", | 19 { |
| 15 "position": [8, 50], | 20 "name": "Squashing Containment Layer", |
| 16 "bounds": [100, 100], | 21 "shouldFlattenTransform": false |
| 17 "contentsOpaque": true, | 22 }, |
| 18 "drawsContent": true, | 23 { |
| 19 "backgroundColor": "#FFFF00" | 24 "name": "LayoutBlockFlow (positioned) DIV id='host'", |
| 20 }, | 25 "position": [100, 100], |
| 21 { | 26 "bounds": [100, 100], |
| 22 "name": "Squashing Containment Layer", | 27 "contentsOpaque": true, |
| 23 "shouldFlattenTransform": false, | 28 "drawsContent": true, |
| 24 "children": [ | 29 "backgroundColor": "#008000" |
| 25 { | 30 }, |
| 26 "name": "LayoutBlockFlow (positioned) DIV id='host'", | 31 { |
| 27 "position": [100, 100], | 32 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (relative
positioned) DIV id='squashed')", |
| 28 "bounds": [100, 100], | 33 "position": [8, 8], |
| 29 "contentsOpaque": true, | 34 "bounds": [100, 100], |
| 30 "drawsContent": true, | 35 "drawsContent": true |
| 31 "backgroundColor": "#008000" | |
| 32 }, | |
| 33 { | |
| 34 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (r
elative positioned) DIV id='squashed')", | |
| 35 "position": [8, 8], | |
| 36 "bounds": [100, 100], | |
| 37 "drawsContent": true | |
| 38 } | |
| 39 ] | |
| 40 } | |
| 41 ] | |
| 42 } | 36 } |
| 43 ] | 37 ] |
| 44 } | 38 } |
| 45 | 39 |
| OLD | NEW |