mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Ladybird: Specify window size in layout dump mode
This commit is contained in:
parent
e249d751c8
commit
12eca612bc
Notes:
sideshowbarker
2024-07-17 03:27:40 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 12eca612bc
Pull-request: https://github.com/SerenityOS/serenity/pull/17255
4 changed files with 14 additions and 6 deletions
|
@ -88,6 +88,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
if (dump_layout_tree) {
|
||||
WebContentView view({});
|
||||
view.set_viewport_rect(Gfx::IntRect({}, { 800, 600 }));
|
||||
view.on_load_finish = [&](auto&) {
|
||||
auto dump = view.dump_layout_tree().release_value_but_fixme_should_propagate_errors();
|
||||
outln("{}", dump);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue