From aa4e18fca50b261eabd5672a3f1163b4ac7ef50b Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 9 Jul 2024 20:40:02 +0100 Subject: [PATCH] LibWeb: Remove `m_src_is_set` field from `HTMLScriptElement` Now that we pass an `old_value` parameter to `attribute_changed` it is no longer necessary to store the current attribute state in `HTMLScriptElement`. --- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp | 4 +--- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp index 4d27860f2c2..8fab5828423 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp @@ -59,13 +59,11 @@ void HTMLScriptElement::attribute_changed(FlyString const& name, Optional m_document_load_event_delayer; size_t m_source_line_number { 1 }; - - bool m_src_is_set = false; }; }