Changeset 179947 in webkit


Ignore:
Timestamp:
Feb 11, 2015 12:34:15 PM (9 years ago)
Author:
Simon Fraser
Message:

Improve the showFrameTree() output slightly
https://bugs.webkit.org/show_bug.cgi?id=141482

Reviewed by Zalan Bujtas.

Have showFrameTree() show the Frame's RenderView so it can be correlated with
layer dumps, and show styleRecalc and needsLayout state.

  • page/FrameTree.cpp:

(printFrames):

  • page/FrameView.cpp:

(WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive): Add an explanatory
comment about why we don't walk the Frame tree.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r179945 r179947  
     12015-02-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Improve the showFrameTree() output slightly
     4        https://bugs.webkit.org/show_bug.cgi?id=141482
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Have showFrameTree() show the Frame's RenderView so it can be correlated with
     9        layer dumps, and show styleRecalc and needsLayout state.
     10
     11        * page/FrameTree.cpp:
     12        (printFrames):
     13        * page/FrameView.cpp:
     14        (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive): Add an explanatory
     15        comment about why we don't walk the Frame tree.
     16
    1172015-02-11  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/page/FrameTree.cpp

    r161703 r179947  
    425425    printf("  ownerElement=%p\n", frame.ownerElement());
    426426    printIndent(indent);
    427     printf("  frameView=%p\n", view);
     427    printf("  frameView=%p (needs layout %d)\n", view, view ? view->needsLayout() : false);
    428428    printIndent(indent);
    429     printf("  document=%p\n", frame.document());
     429    printf("  renderView=%p\n", view ? view->renderView() : nullptr);
    430430    printIndent(indent);
    431     printf("  uri=%s\n\n", frame.document()->documentURI().utf8().data());
     431    printf("  document=%p (needs style recalc %d)\n", frame.document(), frame.document() ? frame.document()->needsStyleRecalc() : false);
     432    printIndent(indent);
     433    printf("  uri=%s\n", frame.document()->documentURI().utf8().data());
    432434
    433435    for (WebCore::Frame* child = frame.tree().firstChild(); child; child = child->tree().nextSibling())
  • trunk/Source/WebCore/page/FrameView.cpp

    r179726 r179947  
    39683968    // calls, as they can potentially re-enter a layout of the parent frame view, which may add/remove scrollbars
    39693969    // and thus mutates the children() set.
     3970    // We use the Widget children because walking the Frame tree would include display:none frames.
    39703971    Vector<Ref<FrameView>, 16> childViews;
    39713972    childViews.reserveInitialCapacity(children().size());
Note: See TracChangeset for help on using the changeset viewer.