Title: [246954] trunk/Source/WebCore
Revision
246954
Author
[email protected]
Date
2019-06-30 07:02:40 -0700 (Sun, 30 Jun 2019)

Log Message

[LFC] Implement Layout::printLayoutTreeForLiveDocuments
https://bugs.webkit.org/show_bug.cgi?id=199343
<rdar://problem/52393047>

Reviewed by Antti Koivisto.

* layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::printLayoutTreeForLiveDocuments):
* page/FrameViewLayoutContext.cpp:
(WebCore::layoutUsingFormattingContext):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (246953 => 246954)


--- trunk/Source/WebCore/ChangeLog	2019-06-30 05:11:26 UTC (rev 246953)
+++ trunk/Source/WebCore/ChangeLog	2019-06-30 14:02:40 UTC (rev 246954)
@@ -1,3 +1,16 @@
+2019-06-30  Zalan Bujtas  <[email protected]>
+
+        [LFC] Implement Layout::printLayoutTreeForLiveDocuments
+        https://bugs.webkit.org/show_bug.cgi?id=199343
+        <rdar://problem/52393047>
+
+        Reviewed by Antti Koivisto.
+
+        * layout/layouttree/LayoutTreeBuilder.cpp:
+        (WebCore::Layout::printLayoutTreeForLiveDocuments):
+        * page/FrameViewLayoutContext.cpp:
+        (WebCore::layoutUsingFormattingContext):
+
 2019-06-22  Darin Adler  <[email protected]>
 
         Streamline some string code, focusing on functions that were using substringSharingImpl

Modified: trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp (246953 => 246954)


--- trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp	2019-06-30 05:11:26 UTC (rev 246953)
+++ trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp	2019-06-30 14:02:40 UTC (rev 246954)
@@ -300,7 +300,12 @@
             fprintf(stderr, "----------------------main frame--------------------------\n");
         fprintf(stderr, "%s\n", document->url().string().utf8().data());
         // FIXME: Need to find a way to output geometry without layout context.
-        // Layout::TreeBuilder::showLayoutTree(*TreeBuilder::createLayoutTree(*document->renderView()));
+        auto& renderView = *document->renderView();
+        auto initialContainingBlock = TreeBuilder::createLayoutTree(renderView);
+        auto layoutState = std::make_unique<Layout::LayoutState>(*initialContainingBlock);
+        layoutState->setQuirksMode(renderView.document().inLimitedQuirksMode() ? LayoutState::QuirksMode::Limited : (renderView.document().inQuirksMode() ? LayoutState::QuirksMode::Yes : LayoutState::QuirksMode::No));
+        layoutState->updateLayout();
+        showLayoutTree(*initialContainingBlock, layoutState.get());
     }
 }
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to