| OLD | NEW |
| 1 CASE 1, original layer tree | 1 CASE 1, original layer tree |
| 2 { | 2 { |
| 3 "name": "Content Root Layer", | 3 "layers": [ |
| 4 "bounds": [800, 600], | |
| 5 "children": [ | |
| 6 { | 4 { |
| 7 "name": "LayoutView #document", | 5 "name": "LayoutView #document", |
| 8 "bounds": [800, 600], | 6 "bounds": [800, 600], |
| 9 "contentsOpaque": true, | 7 "contentsOpaque": true, |
| 8 "drawsContent": true |
| 9 }, |
| 10 { |
| 11 "name": "Squashing Containment Layer", |
| 12 "shouldFlattenTransform": false |
| 13 }, |
| 14 { |
| 15 "name": "LayoutBlockFlow (positioned) DIV class='composited box behind'", |
| 16 "position": [50, 50], |
| 17 "bounds": [100, 100], |
| 18 "contentsOpaque": true, |
| 10 "drawsContent": true, | 19 "drawsContent": true, |
| 11 "children": [ | 20 "backgroundColor": "#0000FF" |
| 12 { | 21 }, |
| 13 "name": "Squashing Containment Layer", | 22 { |
| 14 "shouldFlattenTransform": false, | 23 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (positione
d) DIV class='box top')", |
| 15 "children": [ | 24 "position": [130, 130], |
| 16 { | 25 "bounds": [100, 100], |
| 17 "name": "LayoutBlockFlow (positioned) DIV class='composited box be
hind'", | 26 "drawsContent": true |
| 18 "position": [50, 50], | |
| 19 "bounds": [100, 100], | |
| 20 "contentsOpaque": true, | |
| 21 "drawsContent": true, | |
| 22 "backgroundColor": "#0000FF" | |
| 23 }, | |
| 24 { | |
| 25 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (p
ositioned) DIV class='box top')", | |
| 26 "position": [130, 130], | |
| 27 "bounds": [100, 100], | |
| 28 "drawsContent": true | |
| 29 } | |
| 30 ] | |
| 31 } | |
| 32 ] | |
| 33 } | 27 } |
| 34 ] | 28 ] |
| 35 } | 29 } |
| 36 CASE 2, change color of "inner" to red | 30 CASE 2, change color of "inner" to red |
| 37 { | 31 { |
| 38 "name": "Content Root Layer", | 32 "layers": [ |
| 39 "bounds": [800, 600], | |
| 40 "children": [ | |
| 41 { | 33 { |
| 42 "name": "LayoutView #document", | 34 "name": "LayoutView #document", |
| 43 "bounds": [800, 600], | 35 "bounds": [800, 600], |
| 44 "contentsOpaque": true, | 36 "contentsOpaque": true, |
| 37 "drawsContent": true |
| 38 }, |
| 39 { |
| 40 "name": "Squashing Containment Layer", |
| 41 "shouldFlattenTransform": false |
| 42 }, |
| 43 { |
| 44 "name": "LayoutBlockFlow (positioned) DIV class='composited box behind'", |
| 45 "position": [50, 50], |
| 46 "bounds": [100, 100], |
| 47 "contentsOpaque": true, |
| 45 "drawsContent": true, | 48 "drawsContent": true, |
| 46 "children": [ | 49 "backgroundColor": "#0000FF" |
| 50 }, |
| 51 { |
| 52 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (positione
d) DIV class='box top')", |
| 53 "position": [130, 130], |
| 54 "bounds": [100, 100], |
| 55 "drawsContent": true, |
| 56 "paintInvalidations": [ |
| 47 { | 57 { |
| 48 "name": "Squashing Containment Layer", | 58 "object": "LayoutBlockFlow (positioned) DIV id='inner'", |
| 49 "shouldFlattenTransform": false, | 59 "rect": [10, 10, 50, 50], |
| 50 "children": [ | 60 "reason": "style change" |
| 51 { | |
| 52 "name": "LayoutBlockFlow (positioned) DIV class='composited box be
hind'", | |
| 53 "position": [50, 50], | |
| 54 "bounds": [100, 100], | |
| 55 "contentsOpaque": true, | |
| 56 "drawsContent": true, | |
| 57 "backgroundColor": "#0000FF" | |
| 58 }, | |
| 59 { | |
| 60 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (p
ositioned) DIV class='box top')", | |
| 61 "position": [130, 130], | |
| 62 "bounds": [100, 100], | |
| 63 "drawsContent": true, | |
| 64 "paintInvalidations": [ | |
| 65 { | |
| 66 "object": "LayoutBlockFlow (positioned) DIV id='inner'", | |
| 67 "rect": [10, 10, 50, 50], | |
| 68 "reason": "style change" | |
| 69 } | |
| 70 ] | |
| 71 } | |
| 72 ] | |
| 73 } | 61 } |
| 74 ] | 62 ] |
| 75 } | 63 } |
| 76 ], | 64 ], |
| 77 "objectPaintInvalidations": [ | 65 "objectPaintInvalidations": [ |
| 78 { | 66 { |
| 79 "object": "LayoutBlockFlow (positioned) DIV id='inner'", | 67 "object": "LayoutBlockFlow (positioned) DIV id='inner'", |
| 80 "reason": "style change" | 68 "reason": "style change" |
| 81 } | 69 } |
| 82 ] | 70 ] |
| 83 } | 71 } |
| 84 | 72 |
| OLD | NEW |