Bladeren bron

WebContent: Always update layout before dumping layout tree

This fixes an issue where layout tests were sometimes flakey because
we tried dumping the layout tree before one had been built(!)
Andreas Kling 2 jaren geleden
bovenliggende
commit
e5b97f4a57
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      Userland/Services/WebContent/ConnectionFromClient.cpp

+ 1 - 0
Userland/Services/WebContent/ConnectionFromClient.cpp

@@ -626,6 +626,7 @@ Messages::WebContentServer::DumpLayoutTreeResponse ConnectionFromClient::dump_la
     auto* document = page().top_level_browsing_context().active_document();
     if (!document)
         return DeprecatedString { "(no DOM tree)" };
+    document->update_layout();
     auto* layout_root = document->layout_node();
     if (!layout_root)
         return DeprecatedString { "(no layout tree)" };