From 57e4fb0caebb0074a23bef70d7558ce5e8a5f357 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 23 Sep 2024 11:13:14 -0400 Subject: [PATCH] LibWeb: Clean up HTMLInputElement-related includes This mainly uses forward declarations as appropriate for input element related files. This reduces the number of targets being built when we change HTMLInputElement.h from 430 to 44. --- Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp | 2 ++ Userland/Libraries/LibWeb/HTML/HTMLFormElement.h | 1 - Userland/Libraries/LibWeb/Layout/CheckBox.cpp | 4 +--- Userland/Libraries/LibWeb/Layout/CheckBox.h | 2 +- Userland/Libraries/LibWeb/Layout/RadioButton.cpp | 2 ++ Userland/Libraries/LibWeb/Layout/RadioButton.h | 2 +- Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp | 1 + Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h | 2 +- Userland/Libraries/LibWeb/Painting/RadioButtonPaintable.h | 2 +- Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp | 1 + 10 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp b/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp index ad49e70fbc5..ed3b6f1289a 100644 --- a/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp +++ b/Userland/Libraries/LibWeb/HTML/FormControlInfrastructure.cpp @@ -6,10 +6,12 @@ #include #include +#include #include #include #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h index cc1ef50d3f8..58bbb65b62f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.h @@ -11,7 +11,6 @@ #include #include #include -#include #include namespace Web::HTML { diff --git a/Userland/Libraries/LibWeb/Layout/CheckBox.cpp b/Userland/Libraries/LibWeb/Layout/CheckBox.cpp index f7c51b36396..17c53b9ec9b 100644 --- a/Userland/Libraries/LibWeb/Layout/CheckBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/CheckBox.cpp @@ -4,11 +4,9 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include -#include +#include #include #include -#include #include namespace Web::Layout { diff --git a/Userland/Libraries/LibWeb/Layout/CheckBox.h b/Userland/Libraries/LibWeb/Layout/CheckBox.h index 9bc631e476e..365ac019f3a 100644 --- a/Userland/Libraries/LibWeb/Layout/CheckBox.h +++ b/Userland/Libraries/LibWeb/Layout/CheckBox.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include namespace Web::Layout { diff --git a/Userland/Libraries/LibWeb/Layout/RadioButton.cpp b/Userland/Libraries/LibWeb/Layout/RadioButton.cpp index ecf86bdd1d2..5526e8aec6e 100644 --- a/Userland/Libraries/LibWeb/Layout/RadioButton.cpp +++ b/Userland/Libraries/LibWeb/Layout/RadioButton.cpp @@ -6,6 +6,8 @@ */ #include +#include +#include #include namespace Web::Layout { diff --git a/Userland/Libraries/LibWeb/Layout/RadioButton.h b/Userland/Libraries/LibWeb/Layout/RadioButton.h index 9fc315169cb..45d456ef578 100644 --- a/Userland/Libraries/LibWeb/Layout/RadioButton.h +++ b/Userland/Libraries/LibWeb/Layout/RadioButton.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include namespace Web::Layout { diff --git a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp index a43fd773f4c..175f49d5389 100644 --- a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h index 3b0cd1b055e..3b188bb8a80 100644 --- a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h +++ b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include namespace Web::Painting { diff --git a/Userland/Libraries/LibWeb/Painting/RadioButtonPaintable.h b/Userland/Libraries/LibWeb/Painting/RadioButtonPaintable.h index 8a89579689f..db63adc3181 100644 --- a/Userland/Libraries/LibWeb/Painting/RadioButtonPaintable.h +++ b/Userland/Libraries/LibWeb/Painting/RadioButtonPaintable.h @@ -6,7 +6,7 @@ #pragma once -#include +#include #include namespace Web::Painting { diff --git a/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp b/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp index 606b617c26f..eb85b3cd4e1 100644 --- a/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp +++ b/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Web::Bindings {