These methods are useful during debugging, to quickly figure out how deep you are in a DOM or render tree.
Created attachment 188888 [details] Patch
Comment on attachment 188888 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=188888&action=review > Source/WebCore/ChangeLog:11 > + These methods are useful to call from the debugger, to quickly figure out > + how deep you are in a DOM or render tree. > + > + Reviewed by NOBODY (OOPS!). > + > + No new tests. This is debugging code. I am not sure to understand how does that help debugging? I have the feeling this could also be done through the debugging helpers instead of in-code.
Ah... good point. I'm used to this kind of functionality from Presto, but sure, I can write something nice for gdb instead. :)
Comment on attachment 188888 [details] Patch Clearing the review flag. This may be of interest to you: http://trac.webkit.org/wiki/GDB You can also extend Tools/gdb/webkit.py with the tools you find useful. A version has been started for LLDB: lldb_webkit.py
Thanks. I know about and use Tools/gdb/webkit.py and maybe I'll contribute some day, if I ever start to feel confident enough with my skills in Python and its gdb module. :) Never tried lldb, clang and that stuff at all, but maybe I should.