Changeset 171162 in webkit


Ignore:
Timestamp:
Jul 16, 2014 6:04:22 PM (10 years ago)
Author:
Simon Fraser
Message:

Improve showTree() logging
https://bugs.webkit.org/show_bug.cgi?id=134997

Reviewed by Tim Horton.

Have the debug showTree(), which dumps the Node/Element tree, show which nodes need
style recalc, and print element renderers.

  • dom/Node.cpp:

(WebCore::Node::showNode):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r171161 r171162  
     12014-07-16  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Improve showTree() logging
     4        https://bugs.webkit.org/show_bug.cgi?id=134997
     5
     6        Reviewed by Tim Horton.
     7
     8        Have the debug showTree(), which dumps the Node/Element tree, show which nodes need
     9        style recalc, and print element renderers.
     10
     11        * dom/Node.cpp:
     12        (WebCore::Node::showNode):
     13
    1142014-07-16  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/dom/Node.cpp

    r170828 r171162  
    15291529        appendAttributeDesc(this, attrs, classAttr, " CLASS=");
    15301530        appendAttributeDesc(this, attrs, styleAttr, " STYLE=");
    1531         fprintf(stderr, "%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, attrs.toString().utf8().data());
     1531        fprintf(stderr, "%s%s\t%p (renderer %p) %s%s%s\n", prefix, nodeName().utf8().data(), this, renderer(), attrs.toString().utf8().data(), needsStyleRecalc() ? " (needs style recalc)" : "", childNeedsStyleRecalc() ? " (child needs style recalc)" : "");
    15321532    }
    15331533}
Note: See TracChangeset for help on using the changeset viewer.