RESOLVED FIXED 86450
showNodePath will be useful for debugging purpose.
https://bugs.webkit.org/show_bug.cgi?id=86450
Summary showNodePath will be useful for debugging purpose.
Shinya Kawanaka
Reported 2012-05-15 00:44:46 PDT
showTree(node) is useful, but it often outputs too much. For printf-style debugging, it would be useful to have much less information. For example, showNodePath which outputs something like an XPath will be useful.
Attachments
Patch (4.33 KB, patch)
2012-05-15 04:17 PDT, Takashi Sakamoto
no flags
Patch (4.32 KB, patch)
2012-05-15 19:06 PDT, Takashi Sakamoto
no flags
Patch (4.48 KB, patch)
2012-05-15 23:28 PDT, Takashi Sakamoto
no flags
Patch for landing (4.46 KB, patch)
2012-05-17 00:20 PDT, Takashi Sakamoto
no flags
Shinya Kawanaka
Comment 1 2012-05-15 01:38:42 PDT
Maybe tasak@ will work for this.
Takashi Sakamoto
Comment 2 2012-05-15 04:17:51 PDT
Shinya Kawanaka
Comment 3 2012-05-15 18:38:44 PDT
Comment on attachment 141913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141913&action=review > Source/WebCore/dom/Node.cpp:2242 > + fprintf(stderr, "/#shadow-root"); Maybe you can continue here? > Source/WebCore/dom/Node.cpp:2247 > + CString idname; Where is this used?
Takashi Sakamoto
Comment 4 2012-05-15 19:06:44 PDT
Takashi Sakamoto
Comment 5 2012-05-15 19:08:08 PDT
(In reply to comment #3) > (From update of attachment 141913 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=141913&action=review > > > Source/WebCore/dom/Node.cpp:2242 > > + fprintf(stderr, "/#shadow-root"); > > Maybe you can continue here? Yes. Done. > > > Source/WebCore/dom/Node.cpp:2247 > > + CString idname; > > Where is this used? I removed.
Hajime Morrita
Comment 6 2012-05-15 21:47:40 PDT
Comment on attachment 142127 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142127&action=review Please take care of of ShadowRoot, please... > Source/WebCore/dom/Node.cpp:2234 > + while (index) { Let's loop with for() if there is no specific reason.
Takashi Sakamoto
Comment 7 2012-05-15 23:28:57 PDT
Takashi Sakamoto
Comment 8 2012-05-17 00:20:27 PDT
Created attachment 142430 [details] Patch for landing
WebKit Review Bot
Comment 9 2012-05-17 02:02:37 PDT
Comment on attachment 142430 [details] Patch for landing Clearing flags on attachment: 142430 Committed r117417: <http://trac.webkit.org/changeset/117417>
WebKit Review Bot
Comment 10 2012-05-17 02:02:41 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.