| OLD | NEW |
| 1 This scenario verifies that the green "container" element and lime "innerScrolli
ng" element scroll properly even though there is a blue fixed-position element l
ayered in between them. | 1 This scenario verifies that the green "container" element and lime "innerScrolli
ng" element scroll properly even though there is a blue fixed-position element l
ayered in between them. |
| 2 | 2 |
| 3 The catch is that the squashing requirements should be computed in correct paint
order, so that the green container does not accidentally position itself with r
espect to the wrong layer and not scroll. | 3 The catch is that the squashing requirements should be computed in correct paint
order, so that the green container does not accidentally position itself with r
espect to the wrong layer and not scroll. |
| 4 | 4 |
| 5 CASE 1, original layer tree: | 5 CASE 1, original layer tree: |
| 6 { | 6 { |
| 7 "bounds": [785, 4100], | 7 "bounds": [785, 4100], |
| 8 "children": [ | 8 "children": [ |
| 9 { | 9 { |
| 10 "bounds": [785, 4100], | 10 "bounds": [785, 4100], |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 "bounds": [400, 400], | 101 "bounds": [400, 400], |
| 102 "contentsOpaque": true, | 102 "contentsOpaque": true, |
| 103 "drawsContent": true, | 103 "drawsContent": true, |
| 104 "backgroundColor": "#808080" | 104 "backgroundColor": "#808080" |
| 105 }, | 105 }, |
| 106 { | 106 { |
| 107 "position": [100, 100], | 107 "position": [100, 100], |
| 108 "bounds": [200, 4000], | 108 "bounds": [200, 4000], |
| 109 "drawsContent": true, | 109 "drawsContent": true, |
| 110 "backgroundColor": "#008000", | 110 "backgroundColor": "#008000", |
| 111 "repaintRects": [ | 111 "paintInvalidations": [ |
| 112 [100, 0, 100, 100] | 112 { |
| 113 "object": "LayoutBlockFlow (positioned) DIV id='innerScrolling'", |
| 114 "rect": [100, 0, 100, 100], |
| 115 "reason": "location change" |
| 116 } |
| 113 ], | 117 ], |
| 114 "children": [ | 118 "children": [ |
| 115 { | 119 { |
| 116 "position": [0, 160], | 120 "position": [0, 160], |
| 117 "bounds": [200, 100], | 121 "bounds": [200, 100], |
| 118 "contentsOpaque": true, | 122 "contentsOpaque": true, |
| 119 "drawsContent": true, | 123 "drawsContent": true, |
| 120 "backgroundColor": "#0000FF" | 124 "backgroundColor": "#0000FF" |
| 121 } | 125 } |
| 122 ] | 126 ] |
| 123 } | 127 } |
| 124 ] | 128 ] |
| 125 } | 129 } |
| 126 ] | 130 ] |
| 127 } | 131 } |
| 128 | 132 |
| OLD | NEW |