[LFC] Inline content logging should have some extra space for better readability
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2019 20:48:02 +0000 (20:48 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2019 20:48:02 +0000 (20:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=201236
<rdar://problem/54807336>

Reviewed by Antti Koivisto.

* layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::outputInlineRuns):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249290 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp

index 0003bfc..47ee021 100644 (file)
@@ -1,5 +1,16 @@
 2019-08-29  Zalan Bujtas  <zalan@apple.com>
 
+        [LFC] Inline content logging should have some extra space for better readability
+        https://bugs.webkit.org/show_bug.cgi?id=201236
+        <rdar://problem/54807336>
+
+        Reviewed by Antti Koivisto.
+
+        * layout/layouttree/LayoutTreeBuilder.cpp:
+        (WebCore::Layout::outputInlineRuns):
+
+2019-08-29  Zalan Bujtas  <zalan@apple.com>
+
         [LFC][TFC] Use the "complicated-cases" category for computing the TFC root's height
         https://bugs.webkit.org/show_bug.cgi?id=201230
         <rdar://problem/54806131>
index 7567605..259c6e4 100644 (file)
@@ -250,8 +250,9 @@ static void outputInlineRuns(TextStream& stream, const LayoutState& layoutState,
     auto& lineBoxes = inlineFormattingState.lineBoxes();
 
     unsigned printedCharacters = 0;
-    while (++printedCharacters <= depth * 3)
+    while (++printedCharacters <= depth * 2)
         stream << " ";
+    stream << "  ";
 
     stream << "lines are -> ";
     for (auto& lineBox : lineBoxes)
@@ -260,8 +261,9 @@ static void outputInlineRuns(TextStream& stream, const LayoutState& layoutState,
 
     for (auto& inlineRun : inlineRuns) {
         unsigned printedCharacters = 0;
-        while (++printedCharacters <= depth * 3)
+        while (++printedCharacters <= depth * 2)
             stream << " ";
+        stream << "  ";
         if (inlineRun->textContext())
             stream << "inline text box";
         else