mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibWeb: Fix layout invalidation debug logging (UPDATE_LAYOUT_DEBUG)
This was broken in a recent refactoring and no longer printed for anything but document invalidations.
This commit is contained in:
parent
6b9e8cf40c
commit
0a3df372db
1 changed files with 1 additions and 1 deletions
|
@ -1446,7 +1446,7 @@ void Node::set_needs_layout_update(SetNeedsLayoutReason reason)
|
|||
if constexpr (UPDATE_LAYOUT_DEBUG) {
|
||||
// NOTE: We check some conditions here to avoid debug spam in documents that don't do layout.
|
||||
auto navigable = this->navigable();
|
||||
if (navigable && navigable->active_document() == this)
|
||||
if (navigable && navigable->active_document() == &document())
|
||||
dbgln_if(UPDATE_LAYOUT_DEBUG, "NEED LAYOUT {}", to_string(reason));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue