From 0a3df372db01c5c6104b140f2091c2a0bfdc9921 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 24 Mar 2025 22:46:25 +0000 Subject: [PATCH] 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. --- Libraries/LibWeb/DOM/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/DOM/Node.cpp b/Libraries/LibWeb/DOM/Node.cpp index 62d020cea44..8c8c26f47e6 100644 --- a/Libraries/LibWeb/DOM/Node.cpp +++ b/Libraries/LibWeb/DOM/Node.cpp @@ -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)); }