Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | |
| 3 .box { | |
| 4 height: 200px; | |
| 5 width: 200px; | |
| 6 margin: 10px; | |
| 7 padding: 5px; | |
| 8 background-color: blue; | |
| 9 } | |
| 2 | 10 |
| 3 <html> | 11 .composited { |
| 4 <head> | 12 -webkit-transform: translateZ(0); |
| 5 <style type="text/css" media="screen"> | 13 } |
| 6 .box { | |
| 7 height: 200px; | |
| 8 width: 200px; | |
| 9 margin: 10px; | |
| 10 padding: 5px; | |
| 11 background-color: blue; | |
| 12 } | |
| 13 | |
| 14 .composited { | |
| 15 -webkit-transform: translateZ(0); | |
| 16 } | |
| 17 | 14 |
| 18 #trigger { | 15 #trigger { |
| 19 width: 20px; | 16 width: 20px; |
| 20 height: 20px; | 17 height: 20px; |
| 21 background-color: silver; | 18 background-color: silver; |
| 22 } | 19 } |
| 20 </style> | |
| 21 <script> | |
| 22 if (window.testRunner) | |
| 23 window.testRunner.dumpAsText(); | |
| 23 | 24 |
| 24 </style> | 25 function doTest() |
| 25 <script type="text/javascript" charset="utf-8"> | 26 { |
| 26 if (window.testRunner) { | 27 document.getElementById('test').classList.remove('composited'); |
|
ojan
2014/06/11 17:57:56
This is a minor change. Explicitly remove the comp
| |
| 27 window.testRunner.dumpAsText(); | 28 if (window.testRunner) |
| 28 } | |
| 29 | |
| 30 function doTest() | |
| 31 { | |
| 32 document.getElementById('test').className = 'box'; | |
| 33 if (window.testRunner) { | |
| 34 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); | 29 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); |
| 35 } | 30 } |
| 36 } | 31 window.addEventListener('load', doTest, false); |
| 37 window.addEventListener('load', doTest, false); | 32 </script> |
| 38 </script> | 33 <!-- This test div starts out with a 3d transform, but should be |
| 39 </head> | 34 de-promoted from a composited layer before the test completes. --> |
| 40 <body> | 35 <div id="test" class="composited box"></div> |
| 41 <!-- This test div starts out with a 3d transform, but should be | 36 <pre id="layers">Layer tree appears here in DRT.</pre> |
| 42 de-promoted from a composited layer before the test completes. --> | |
| 43 <div id="test" class="composited box"> | |
| 44 </div> | |
| 45 <!-- This div exists to keep blink in compositing mode until | |
| 46 ForceCompositingMode is always on. --> | |
| 47 <div id="trigger" class="composited"> | |
|
ojan
2014/06/11 17:57:56
The only real change here is to remove this div.
| |
| 48 </div> | |
| 49 | |
| 50 <pre id="layers">Layer tree appears here in DRT.</pre> | |
| 51 </body> | |
| 52 </html> | |
| OLD | NEW |