Title: [267666] trunk/Source/WebCore
Revision
267666
Author
[email protected]
Date
2020-09-27 09:30:54 -0700 (Sun, 27 Sep 2020)

Log Message

Unreviewed. Call showLayoutTree only when trees are mismatching.

* layout/Verification.cpp:
(WebCore::Layout::LayoutContext::verifyAndOutputMismatchingLayoutTree):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (267665 => 267666)


--- trunk/Source/WebCore/ChangeLog	2020-09-27 15:37:41 UTC (rev 267665)
+++ trunk/Source/WebCore/ChangeLog	2020-09-27 16:30:54 UTC (rev 267666)
@@ -1,5 +1,12 @@
 2020-09-27  Zalan Bujtas  <[email protected]>
 
+        Unreviewed. Call showLayoutTree only when trees are mismatching.
+
+        * layout/Verification.cpp:
+        (WebCore::Layout::LayoutContext::verifyAndOutputMismatchingLayoutTree):
+
+2020-09-27  Zalan Bujtas  <[email protected]>
+
         [LFC][IFC] Create inline boxes for hard line breaks(<br>) and word wrap opportunities (<wbr>)
         https://bugs.webkit.org/show_bug.cgi?id=217023
 

Modified: trunk/Source/WebCore/layout/Verification.cpp (267665 => 267666)


--- trunk/Source/WebCore/layout/Verification.cpp	2020-09-27 15:37:41 UTC (rev 267665)
+++ trunk/Source/WebCore/layout/Verification.cpp	2020-09-27 16:30:54 UTC (rev 267666)
@@ -334,13 +334,13 @@
 {
     TextStream stream;
     auto& layoutRoot = layoutState.root();
+    auto mismatchingGeometry = verifyAndOutputSubtree(stream, layoutState, rootRenderer, layoutRoot);
+    if (!mismatchingGeometry)
+        return;
 #if ENABLE(TREE_DEBUGGING)
     showRenderTree(&rootRenderer);
     showLayoutTree(layoutRoot, &layoutState);
 #endif
-    auto mismatchingGeometry = verifyAndOutputSubtree(stream, layoutState, rootRenderer, layoutRoot);
-    if (!mismatchingGeometry)
-        return;
     WTFLogAlways("%s", stream.release().utf8().data());
     ASSERT_NOT_REACHED();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to