| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- Tests that overflow controls are repainted after compositing is disabled. T
here should be three green squares and no visible overflow controls --> | 2 <!-- Tests that overflow controls are repainted after compositing is disabled. T
here should be three green squares and no visible overflow controls --> |
| 3 <style> | 3 <style> |
| 4 .composited { | 4 .composited { |
| 5 -webkit-transform:translateZ(0); | 5 -webkit-transform:translateZ(0); |
| 6 } | 6 } |
| 7 | 7 |
| 8 .container { | 8 .container { |
| 9 width: 100px; | 9 width: 100px; |
| 10 height:100px; | 10 height:100px; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 document.getElementById("both").contentDocument.body.classList.remove("wide"
); // bottom iframe loses both | 27 document.getElementById("both").contentDocument.body.classList.remove("wide"
); // bottom iframe loses both |
| 28 document.getElementById("both").contentDocument.body.classList.remove("tall"
); // bottom iframe loses both | 28 document.getElementById("both").contentDocument.body.classList.remove("tall"
); // bottom iframe loses both |
| 29 } | 29 } |
| 30 | 30 |
| 31 function test() { | 31 function test() { |
| 32 document.getElementById("vertical").contentDocument.body.classList.add("tall
"); // topmost iframe starts with a vertical scrollbar | 32 document.getElementById("vertical").contentDocument.body.classList.add("tall
"); // topmost iframe starts with a vertical scrollbar |
| 33 document.getElementById("horizontal").contentDocument.body.classList.add("wi
de"); // middle iframe starts with a horizontal scrollbar | 33 document.getElementById("horizontal").contentDocument.body.classList.add("wi
de"); // middle iframe starts with a horizontal scrollbar |
| 34 document.getElementById("both").contentDocument.body.classList.add("wide");
// bottom iframe starts with both | 34 document.getElementById("both").contentDocument.body.classList.add("wide");
// bottom iframe starts with both |
| 35 document.getElementById("both").contentDocument.body.classList.add("tall");
// vertical and horizontal scrollbars | 35 document.getElementById("both").contentDocument.body.classList.add("tall");
// vertical and horizontal scrollbars |
| 36 if (window.testRunner) { | 36 if (window.testRunner) { |
| 37 testRunner.dumpAsText(true); | 37 testRunner.dumpAsTextWithPixelResults(); |
| 38 testRunner.display(); // Paint once with all overflow controls visible. | 38 testRunner.display(); // Paint once with all overflow controls visible. |
| 39 finishTest(); | 39 finishTest(); |
| 40 } else | 40 } else |
| 41 window.setTimeout(finishTest, 5000); | 41 window.setTimeout(finishTest, 5000); |
| 42 } | 42 } |
| 43 </script> | 43 </script> |
| OLD | NEW |