index.html (2722B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 5 <!doctype html> 6 <html> 7 <head> 8 <title>GFX Display List & Layer Visualizer</title> 9 <meta charset="utf-8" /> 10 <link rel="stylesheet" type="text/css" href="tree.css" /> 11 <script src="layerTreeView.js"></script> 12 <style> 13 .csstooltip { 14 z-index: 5; 15 background: white; 16 border: solid 1px black; 17 position: absolute; 18 padding: 5px; 19 margin: 5px; 20 max-width: 300px; 21 } 22 </style> 23 </head> 24 <body> 25 <h1>GFX Layers dump visualizer:</h1> 26 Paste your display list or layers dump into this textarea:<br /> 27 <textarea 28 id="input_layers_dump" 29 style="width: 100%; height: 80%" 30 cols="80" 31 rows="10" 32 > 33 ClientLayerManager (0x1264f5000) 34 ClientContainerLayer (0x1263fe200) [visible=< (x=0, y=0, w=1457, h=1163); >] [opaqueContent] [metrics0={ [cb=(x=0.000000, y=0.000000, w=1457.000000, h=1163.000000)] [sr=(x=0.000000, y=0.000000, w=1457.000000, h=1163.000000)] [s=(0,0)] [dp=(x=0.000000, y=0.000000, w=1457.000000, h=1163.000000)] [cdp=(x=0.000000, y=0.000000, w=0.000000, h=0.000000)] [color=rgba(0, 0, 0, 0.000000)] [scrollId=3] [z=1] }] 35 ClientTiledPaintedLayer (0x1263b3600) [bounds=(x=-1, y=0, w=1458, h=1163)] [visible=< (x=0, y=0, w=1457, h=79); >] { hitregion=< (x=0, y=0, w=1457, h=47); (x=-1, y=47, w=1458, h=24); (x=0, y=71, w=1457, h=1092); > dispatchtocontentregion=< (x=68, y=9, w=1375, h=31); (x=944, y=47, w=280, h=24); >} [opaqueContent] [valid=< (x=0, y=0, w=1457, h=79); >] 36 SingleTiledContentClient (0x126f80680) 37 ClientContainerLayer (0x122a33f00) [clip=(x=0, y=79, w=1457, h=1084)] [visible=< (x=0, y=79, w=1457, h=1084); >] [opaqueContent] 38 ClientTiledPaintedLayer (0x11e11a700) [bounds=(x=0, y=79, w=1457, h=1084)] [visible=< (x=0, y=79, w=1457, h=1084); >] { hitregion=< (x=0, y=79, w=1457, h=1084); > dispatchtocontentregion=< (x=0, y=125, w=1457, h=1034); >} [opaqueContent] [valid=< (x=0, y=79, w=1457, h=1084); >] 39 SingleTiledContentClient (0x1226d52c0) 40 </textarea> 41 <br /> 42 <input type="button" value="Process pasted log" onclick="log_pasted()" /> 43 <br /> 44 <br /> 45 Help: To get a layers dump go to about:config and set 46 layout.display-list.dump;true 47 <script> 48 function log_pasted() { 49 var container = parseMultiLineDump( 50 document.getElementById("input_layers_dump").value 51 ); 52 document.body.innerHTML = ""; 53 document.body.appendChild(container); 54 } 55 </script> 56 </body> 57 </html>