From fde86350e35b3be778aa2ab9cb9a215ccfb70485 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 31 May 2023 11:48:29 +0200 Subject: [PATCH] LibWeb: Put debug spam about indefinitely sized SVGs behind a flag --- Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp index bd28eaa644..7bce7d03bd 100644 --- a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp @@ -7,6 +7,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include @@ -162,7 +163,7 @@ void SVGFormattingContext::run(Box const& box, LayoutMode layout_mode, Available // FIXME: This should allow just one of width or height to be specified. // E.g. We should be able to layout where height is unspecified/auto. if (!svg_box_state.has_definite_width() || !svg_box_state.has_definite_height()) { - dbgln("FIXME: Attempting to layout indefinitely sized SVG with a viewbox -- this likely won't work!"); + dbgln_if(LIBWEB_CSS_DEBUG, "FIXME: Attempting to layout indefinitely sized SVG with a viewbox -- this likely won't work!"); } auto view_box = maybe_view_box.value();