OLD | NEW |
1 A squashing Layer that becomes non-composited should correctly send a repaint in
validation to the new container GraphicsLayer that it paints into. When run inte
ractively, hovering over the force-composited gray div should not cause other la
yers to disappear. | 1 A squashing Layer that becomes non-composited should correctly send a repaint in
validation to the new container GraphicsLayer that it paints into. When run inte
ractively, hovering over the force-composited gray div should not cause other la
yers to disappear. |
2 | 2 |
3 CASE 1, original layer tree: | 3 CASE 1, original layer tree: |
4 { | 4 { |
| 5 "name": "Content Root Layer", |
5 "bounds": [800, 600], | 6 "bounds": [800, 600], |
6 "children": [ | 7 "children": [ |
7 { | 8 { |
| 9 "name": "LayoutView #document", |
8 "bounds": [800, 600], | 10 "bounds": [800, 600], |
9 "contentsOpaque": true, | 11 "contentsOpaque": true, |
10 "drawsContent": true, | 12 "drawsContent": true, |
11 "children": [ | 13 "children": [ |
12 { | 14 { |
| 15 "name": "Squashing Containment Layer", |
13 "shouldFlattenTransform": false, | 16 "shouldFlattenTransform": false, |
14 "children": [ | 17 "children": [ |
15 { | 18 { |
| 19 "name": "LayoutBlockFlow (positioned) DIV id='forceComposited' cla
ss='composited underneath'", |
16 "position": [60, 60], | 20 "position": [60, 60], |
17 "bounds": [100, 100], | 21 "bounds": [100, 100], |
18 "contentsOpaque": true, | 22 "contentsOpaque": true, |
19 "drawsContent": true, | 23 "drawsContent": true, |
20 "backgroundColor": "#808080" | 24 "backgroundColor": "#808080" |
21 }, | 25 }, |
22 { | 26 { |
| 27 "name": "Squashing Layer (first squashed layer: LayoutBlockFlow (p
ositioned) DIV id='A' class='overlap1')", |
23 "position": [140, 140], | 28 "position": [140, 140], |
24 "bounds": [260, 260], | 29 "bounds": [260, 260], |
25 "drawsContent": true | 30 "drawsContent": true |
26 } | 31 } |
27 ] | 32 ] |
28 } | 33 } |
29 ] | 34 ] |
30 } | 35 } |
31 ] | 36 ] |
32 } | 37 } |
33 CASE 2, The original composited layer is no longer composited, which then also r
emoves all squashing layers. The important point is that there should be an appr
opriate repaint to the root GraphicsLayer: | 38 CASE 2, The original composited layer is no longer composited, which then also r
emoves all squashing layers. The important point is that there should be an appr
opriate repaint to the root GraphicsLayer: |
34 { | 39 { |
| 40 "name": "Content Root Layer", |
35 "bounds": [800, 600], | 41 "bounds": [800, 600], |
36 "children": [ | 42 "children": [ |
37 { | 43 { |
| 44 "name": "LayoutView #document", |
38 "bounds": [800, 600], | 45 "bounds": [800, 600], |
39 "contentsOpaque": true, | 46 "contentsOpaque": true, |
40 "drawsContent": true, | 47 "drawsContent": true, |
41 "paintInvalidations": [ | 48 "paintInvalidations": [ |
42 { | 49 { |
43 "object": "LayoutBlockFlow (positioned) DIV id='C' class='overlap3'", | 50 "object": "LayoutBlockFlow (positioned) DIV id='C' class='overlap3'", |
44 "rect": [300, 300, 100, 100], | 51 "rect": [300, 300, 100, 100], |
45 "reason": "compositing update" | 52 "reason": "compositing update" |
46 }, | 53 }, |
47 { | 54 { |
48 "object": "LayoutBlockFlow (positioned) DIV id='B' class='overlap2'", | 55 "object": "LayoutBlockFlow (positioned) DIV id='B' class='overlap2'", |
49 "rect": [220, 220, 100, 100], | 56 "rect": [220, 220, 100, 100], |
50 "reason": "compositing update" | 57 "reason": "compositing update" |
51 }, | 58 }, |
52 { | 59 { |
53 "object": "LayoutBlockFlow (positioned) DIV id='A' class='overlap1'", | 60 "object": "LayoutBlockFlow (positioned) DIV id='A' class='overlap1'", |
54 "rect": [140, 140, 100, 100], | 61 "rect": [140, 140, 100, 100], |
55 "reason": "compositing update" | 62 "reason": "compositing update" |
56 }, | 63 }, |
57 { | 64 { |
58 "object": "LayoutBlockFlow (positioned) DIV id='forceComposited' class
='underneath'", | 65 "object": "LayoutBlockFlow (positioned) DIV id='forceComposited' class
='underneath'", |
59 "rect": [60, 60, 100, 100], | 66 "rect": [60, 60, 100, 100], |
60 "reason": "subtree" | 67 "reason": "subtree" |
61 } | 68 } |
62 ] | 69 ] |
63 } | 70 } |
| 71 ], |
| 72 "objectPaintInvalidations": [ |
| 73 { |
| 74 "object": "LayoutBlockFlow (positioned) DIV id='forceComposited' class='un
derneath'", |
| 75 "reason": "subtree" |
| 76 }, |
| 77 { |
| 78 "object": "LayoutBlockFlow (positioned) DIV id='A' class='overlap1'", |
| 79 "reason": "compositing update" |
| 80 }, |
| 81 { |
| 82 "object": "LayoutBlockFlow (positioned) DIV id='B' class='overlap2'", |
| 83 "reason": "compositing update" |
| 84 }, |
| 85 { |
| 86 "object": "LayoutBlockFlow (positioned) DIV id='C' class='overlap3'", |
| 87 "reason": "compositing update" |
| 88 } |
64 ] | 89 ] |
65 } | 90 } |
66 | 91 |
OLD | NEW |