| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body { | 5 body { |
| 6 height: 2000px; | 6 height: 2000px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 .positionFixed { | 9 .positionFixed { |
| 10 position: fixed; | 10 position: fixed; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 var containers = document.getElementsByClassName("overflow"); | 251 var containers = document.getElementsByClassName("overflow"); |
| 252 for (var i = 0; i < containers.length; ++i) { | 252 for (var i = 0; i < containers.length; ++i) { |
| 253 var container = containers[i]; | 253 var container = containers[i]; |
| 254 container.scrollTop = container.scrollHeight - container.clientHeight; | 254 container.scrollTop = container.scrollHeight - container.clientHeight; |
| 255 } | 255 } |
| 256 | 256 |
| 257 addDomElement("pre", "", "console", "body", [], 0); | 257 addDomElement("pre", "", "console", "body", [], 0); |
| 258 var pre = document.getElementById("console"); | 258 var pre = document.getElementById("console"); |
| 259 | 259 |
| 260 if (window.internals) { | 260 if (window.internals) { |
| 261 var layerTreeAsText = internals.layerTreeAsText(document, window.interna
ls.OUTPUT_CHILDREN_AS_LAYER_LIST); | 261 var layerTreeAsText = internals.layerTreeAsText(document); |
| 262 pre.style.left = "-80000px"; | 262 pre.style.left = "-80000px"; |
| 263 pre.innerHTML = layerTreeAsText; | 263 pre.innerHTML = layerTreeAsText; |
| 264 } else { | 264 } else { |
| 265 pre.innerHTML = description.join(""); | 265 pre.innerHTML = description.join(""); |
| 266 } | 266 } |
| 267 } | 267 } |
| 268 | 268 |
| 269 window.onload = doTest; | 269 window.onload = doTest; |
| 270 | 270 |
| 271 </script> | 271 </script> |
| 272 </head> | 272 </head> |
| 273 <body> | 273 <body> |
| 274 </body> | 274 </body> |
| 275 </html> | 275 </html> |
| OLD | NEW |