[webkit-dev] Dump render tree of webkit

Meryl Silverburgh silverburgh.meryl at gmail.com
Thu May 14 08:53:44 PDT 2009


In http://webkit.org/blog/114/webcore-rendering-i-the-basics/, it said
webkit will build a Render tree for each page it loads.
Is there a tool/API for me to dump the Render Tree to a file/screen?

The closest I find is './WebKitBuild/Debug/DumpRenderTree', but when I run it

$ ./WebKitBuild/Debug/DumpRenderTree http://www.cnn.com
Blocked access to external URL http://www.cnn.com/
Content-Type: text/plain
layer at (0,0) size 800x600
  RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
  RenderBlock {HTML} at (0,0) size 800x600
    RenderBody {BODY} at (8,8) size 784x584
LEAK: 1 JSC::Node

Moreover , is there any tool/function to dump the DOM of a page to file/screen?

Thank you.

More information about the webkit-dev mailing list