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.
This commit is contained in:
Timothy Flynn 2024-09-23 11:13:14 -04:00 committed by Tim Flynn
parent fe9af6ffa2
commit 57e4fb0cae
Notes: github-actions[bot] 2024-09-23 17:32:33 +00:00
10 changed files with 11 additions and 8 deletions

View file

@ -6,10 +6,12 @@
#include <AK/GenericLexer.h>
#include <AK/Random.h>
#include <LibWeb/FileAPI/File.h>
#include <LibWeb/HTML/FormControlInfrastructure.h>
#include <LibWeb/HTML/FormDataEvent.h>
#include <LibWeb/HTML/HTMLButtonElement.h>
#include <LibWeb/HTML/HTMLDataListElement.h>
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/HTML/HTMLOptionElement.h>
#include <LibWeb/HTML/HTMLSelectElement.h>
#include <LibWeb/Infra/Strings.h>

View file

@ -11,7 +11,6 @@
#include <AK/Time.h>
#include <LibWeb/ARIA/Roles.h>
#include <LibWeb/HTML/HTMLElement.h>
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/HTML/Navigable.h>
namespace Web::HTML {

View file

@ -4,11 +4,9 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGfx/Font/Font.h>
#include <LibWeb/HTML/BrowsingContext.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/Layout/CheckBox.h>
#include <LibWeb/Layout/Label.h>
#include <LibWeb/Painting/CheckBoxPaintable.h>
namespace Web::Layout {

View file

@ -6,7 +6,7 @@
#pragma once
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Layout/FormAssociatedLabelableNode.h>
namespace Web::Layout {

View file

@ -6,6 +6,8 @@
*/
#include <LibWeb/DOM/Document.h>
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/Layout/RadioButton.h>
#include <LibWeb/Painting/RadioButtonPaintable.h>
namespace Web::Layout {

View file

@ -6,7 +6,7 @@
#pragma once
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Layout/FormAssociatedLabelableNode.h>
namespace Web::Layout {

View file

@ -9,6 +9,7 @@
#include <LibGfx/Bitmap.h>
#include <LibWeb/HTML/BrowsingContext.h>
#include <LibWeb/HTML/HTMLImageElement.h>
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/Layout/CheckBox.h>
#include <LibWeb/Layout/Label.h>
#include <LibWeb/Painting/CheckBoxPaintable.h>

View file

@ -6,7 +6,7 @@
#pragma once
#include <LibWeb/Layout/CheckBox.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Painting/LabelablePaintable.h>
namespace Web::Painting {

View file

@ -6,7 +6,7 @@
#pragma once
#include <LibWeb/Layout/RadioButton.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Painting/LabelablePaintable.h>
namespace Web::Painting {

View file

@ -8,6 +8,7 @@
#include <LibJS/Runtime/Iterator.h>
#include <LibWeb/Bindings/FormDataIteratorPrototype.h>
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/FileAPI/File.h>
#include <LibWeb/XHR/FormDataIterator.h>
namespace Web::Bindings {