mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Rename Layout::InitialContainingBlock to Layout::Viewport
The name "initial containing block" was wrong for this, as it doesn't correspond to the HTML element, and that's specifically what it's supposed to do! :^)
This commit is contained in:
parent
60f699338d
commit
7e76a51cb0
Notes:
sideshowbarker
2024-07-17 09:41:18 +09:00
Author: https://github.com/awesomekling
Commit: 7e76a51cb0
66 changed files with 121 additions and 128 deletions
|
@ -24,7 +24,7 @@
|
|||
#include <LibWeb/HTML/Scripting/ClassicScript.h>
|
||||
#include <LibWeb/HTML/Storage.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/Layout/InitialContainingBlock.h>
|
||||
#include <LibWeb/Layout/Viewport.h>
|
||||
#include <LibWeb/Loader/ContentFilter.h>
|
||||
#include <LibWeb/Loader/ProxyMappings.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
|
@ -204,15 +204,15 @@ void ConnectionFromClient::debug_request(DeprecatedString const& request, Deprec
|
|||
|
||||
if (request == "dump-layout-tree") {
|
||||
if (auto* doc = page().top_level_browsing_context().active_document()) {
|
||||
if (auto* icb = doc->layout_node())
|
||||
Web::dump_tree(*icb);
|
||||
if (auto* viewport = doc->layout_node())
|
||||
Web::dump_tree(*viewport);
|
||||
}
|
||||
}
|
||||
|
||||
if (request == "dump-stacking-context-tree") {
|
||||
if (auto* doc = page().top_level_browsing_context().active_document()) {
|
||||
if (auto* icb = doc->layout_node()) {
|
||||
if (auto* stacking_context = icb->paint_box()->stacking_context())
|
||||
if (auto* viewport = doc->layout_node()) {
|
||||
if (auto* stacking_context = viewport->paint_box()->stacking_context())
|
||||
stacking_context->dump();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue