| CASE 1, original layer tree |
| { |
| "layers": [ |
| { |
| "name": "Scrolling Contents Layer", |
| "bounds": [800, 600], |
| "contentsOpaque": true, |
| "backgroundColor": "#FFFFFF" |
| }, |
| { |
| "name": "LayoutBlockFlow (positioned) DIV class='composited box behind'", |
| "bounds": [100, 100], |
| "contentsOpaque": true, |
| "backgroundColor": "#0000FF", |
| "transform": 1 |
| }, |
| { |
| "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (positioned) DIV class='box top')", |
| "position": [80, 80], |
| "bounds": [100, 100], |
| "transform": 1 |
| } |
| ], |
| "transforms": [ |
| { |
| "id": 1, |
| "transform": [ |
| [1, 0, 0, 0], |
| [0, 1, 0, 0], |
| [0, 0, 1, 0], |
| [50, 50, 0, 1] |
| ] |
| } |
| ] |
| } |
| |
| CASE 2, change color of "inner" to red |
| { |
| "layers": [ |
| { |
| "name": "Scrolling Contents Layer", |
| "bounds": [800, 600], |
| "contentsOpaque": true, |
| "backgroundColor": "#FFFFFF" |
| }, |
| { |
| "name": "LayoutBlockFlow (positioned) DIV class='composited box behind'", |
| "bounds": [100, 100], |
| "contentsOpaque": true, |
| "backgroundColor": "#0000FF", |
| "transform": 1 |
| }, |
| { |
| "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (positioned) DIV class='box top')", |
| "position": [80, 80], |
| "bounds": [100, 100], |
| "paintInvalidations": [ |
| { |
| "object": "LayoutBlockFlow (positioned) DIV id='inner'", |
| "rect": [10, 10, 50, 50], |
| "reason": "background" |
| } |
| ], |
| "transform": 1 |
| } |
| ], |
| "transforms": [ |
| { |
| "id": 1, |
| "transform": [ |
| [1, 0, 0, 0], |
| [0, 1, 0, 0], |
| [0, 0, 1, 0], |
| [50, 50, 0, 1] |
| ] |
| } |
| ] |
| } |
| |