⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267666 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 9:30:54 AM (6 years ago)
Author:
Alan Bujtas
Message:

Unreviewed. Call showLayoutTree only when trees are mismatching.

  • layout/Verification.cpp:

(WebCore::Layout::LayoutContext::verifyAndOutputMismatchingLayoutTree):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267657 r267666  
     12020-09-27  Zalan Bujtas  <zalan@apple.com>
     2
     3        Unreviewed. Call showLayoutTree only when trees are mismatching.
     4
     5        * layout/Verification.cpp:
     6        (WebCore::Layout::LayoutContext::verifyAndOutputMismatchingLayoutTree):
     7
    182020-09-27  Zalan Bujtas  <zalan@apple.com>
    29
  • trunk/Source/WebCore/layout/Verification.cpp

    r267657 r267666  
    335335    TextStream stream;
    336336    auto& layoutRoot = layoutState.root();
     337    auto mismatchingGeometry = verifyAndOutputSubtree(stream, layoutState, rootRenderer, layoutRoot);
     338    if (!mismatchingGeometry)
     339        return;
    337340#if ENABLE(TREE_DEBUGGING)
    338341    showRenderTree(&rootRenderer);
    339342    showLayoutTree(layoutRoot, &layoutState);
    340343#endif
    341     auto mismatchingGeometry = verifyAndOutputSubtree(stream, layoutState, rootRenderer, layoutRoot);
    342     if (!mismatchingGeometry)
    343         return;
    344344    WTFLogAlways("%s", stream.release().utf8().data());
    345345    ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.