diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index 0303d6ede20..5cfa5c9cda9 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -49,12 +49,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/Libraries/LibWeb/CMakeLists.txt b/Libraries/LibWeb/CMakeLists.txt index 1573c0a74ff..ecaabe504e9 100644 --- a/Libraries/LibWeb/CMakeLists.txt +++ b/Libraries/LibWeb/CMakeLists.txt @@ -42,8 +42,6 @@ set(SOURCES DOMTreeModel.cpp Dump.cpp FontCache.cpp - Frame/EventHandler.cpp - Frame/Frame.cpp HTML/CanvasRenderingContext2D.cpp HTML/HTMLAnchorElement.cpp HTML/HTMLBRElement.cpp @@ -105,7 +103,9 @@ set(SOURCES Loader/ImageResource.cpp Loader/Resource.cpp Loader/ResourceLoader.cpp - Page.cpp + Page/EventHandler.cpp + Page/Frame.cpp + Page/Page.cpp PageView.cpp Painting/StackingContext.cpp SVG/SVGElement.cpp diff --git a/Libraries/LibWeb/CSS/StyleValue.cpp b/Libraries/LibWeb/CSS/StyleValue.cpp index 9b6baa65831..fe23dbd6368 100644 --- a/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Libraries/LibWeb/CSS/StyleValue.cpp @@ -29,9 +29,9 @@ #include #include #include -#include #include #include +#include #include namespace Web::CSS { diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index a2235779a3f..78d2f1785a0 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #include #include #include diff --git a/Libraries/LibWeb/DOM/Window.cpp b/Libraries/LibWeb/DOM/Window.cpp index 46adb627b63..965812574e7 100644 --- a/Libraries/LibWeb/DOM/Window.cpp +++ b/Libraries/LibWeb/DOM/Window.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include namespace Web::DOM { diff --git a/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Libraries/LibWeb/HTML/HTMLFormElement.cpp index 1ba31f05048..421339673e7 100644 --- a/Libraries/LibWeb/HTML/HTMLFormElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLFormElement.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include diff --git a/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp b/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp index b4534898b9b..c32cab398bc 100644 --- a/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp @@ -29,15 +29,15 @@ #include #include #include +#include #include #include -#include -#include +#include #include #include #include +#include #include -#include namespace Web::HTML { diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp index faf10c6a31f..cdcb305292a 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -31,8 +31,8 @@ #include #include #include -#include #include +#include #include namespace Web::HTML { diff --git a/Libraries/LibWeb/Layout/LayoutBox.cpp b/Libraries/LibWeb/Layout/LayoutBox.cpp index 4a5aa6ef4f8..e87ae9c4e51 100644 --- a/Libraries/LibWeb/Layout/LayoutBox.cpp +++ b/Libraries/LibWeb/Layout/LayoutBox.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include diff --git a/Libraries/LibWeb/Layout/LayoutDocument.cpp b/Libraries/LibWeb/Layout/LayoutDocument.cpp index ec70d146c8b..90c364ba49b 100644 --- a/Libraries/LibWeb/Layout/LayoutDocument.cpp +++ b/Libraries/LibWeb/Layout/LayoutDocument.cpp @@ -25,10 +25,10 @@ */ #include -#include #include #include #include +#include #include namespace Web { diff --git a/Libraries/LibWeb/Layout/LayoutFrame.cpp b/Libraries/LibWeb/Layout/LayoutFrame.cpp index 2246982bcb2..f63a9e81096 100644 --- a/Libraries/LibWeb/Layout/LayoutFrame.cpp +++ b/Libraries/LibWeb/Layout/LayoutFrame.cpp @@ -30,9 +30,9 @@ #include #include #include -#include #include #include +#include #include namespace Web { diff --git a/Libraries/LibWeb/Layout/LayoutNode.cpp b/Libraries/LibWeb/Layout/LayoutNode.cpp index 215ec77c93d..658abdab1d1 100644 --- a/Libraries/LibWeb/Layout/LayoutNode.cpp +++ b/Libraries/LibWeb/Layout/LayoutNode.cpp @@ -27,11 +27,11 @@ #include #include #include -#include #include #include #include #include +#include namespace Web { diff --git a/Libraries/LibWeb/Layout/LayoutWidget.cpp b/Libraries/LibWeb/Layout/LayoutWidget.cpp index d4cdd1c50e9..e77a9b623a8 100644 --- a/Libraries/LibWeb/Layout/LayoutWidget.cpp +++ b/Libraries/LibWeb/Layout/LayoutWidget.cpp @@ -30,8 +30,8 @@ #include #include #include -#include #include +#include #include namespace Web { diff --git a/Libraries/LibWeb/Loader/FrameLoader.cpp b/Libraries/LibWeb/Loader/FrameLoader.cpp index 0d34ce9034e..ed82a861207 100644 --- a/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -31,11 +31,11 @@ #include #include #include -#include +#include #include #include -#include -#include +#include +#include namespace Web { diff --git a/Libraries/LibWeb/Frame/EventHandler.cpp b/Libraries/LibWeb/Page/EventHandler.cpp similarity index 99% rename from Libraries/LibWeb/Frame/EventHandler.cpp rename to Libraries/LibWeb/Page/EventHandler.cpp index 7bbd5181c2a..0bb63b83b4e 100644 --- a/Libraries/LibWeb/Frame/EventHandler.cpp +++ b/Libraries/LibWeb/Page/EventHandler.cpp @@ -28,11 +28,11 @@ #include #include #include -#include -#include #include #include #include +#include +#include #include #include diff --git a/Libraries/LibWeb/Frame/EventHandler.h b/Libraries/LibWeb/Page/EventHandler.h similarity index 100% rename from Libraries/LibWeb/Frame/EventHandler.h rename to Libraries/LibWeb/Page/EventHandler.h diff --git a/Libraries/LibWeb/Frame/Frame.cpp b/Libraries/LibWeb/Page/Frame.cpp similarity index 99% rename from Libraries/LibWeb/Frame/Frame.cpp rename to Libraries/LibWeb/Page/Frame.cpp index b2dafa15339..5262c8bd362 100644 --- a/Libraries/LibWeb/Frame/Frame.cpp +++ b/Libraries/LibWeb/Page/Frame.cpp @@ -26,9 +26,9 @@ #include #include -#include #include #include +#include #include namespace Web { diff --git a/Libraries/LibWeb/Frame/Frame.h b/Libraries/LibWeb/Page/Frame.h similarity index 98% rename from Libraries/LibWeb/Frame/Frame.h rename to Libraries/LibWeb/Page/Frame.h index 4e171adca6f..07d2bf8a1ab 100644 --- a/Libraries/LibWeb/Frame/Frame.h +++ b/Libraries/LibWeb/Page/Frame.h @@ -33,8 +33,8 @@ #include #include #include -#include #include +#include #include namespace Web { @@ -83,7 +83,6 @@ public: Gfx::IntPoint to_main_frame_position(const Gfx::IntPoint&); Gfx::IntRect to_main_frame_rect(const Gfx::IntRect&); - private: explicit Frame(DOM::Element& host_element, Frame& main_frame); explicit Frame(Page&); diff --git a/Libraries/LibWeb/Page.cpp b/Libraries/LibWeb/Page/Page.cpp similarity index 97% rename from Libraries/LibWeb/Page.cpp rename to Libraries/LibWeb/Page/Page.cpp index 73c3eeeb2cb..f02cfc93853 100644 --- a/Libraries/LibWeb/Page.cpp +++ b/Libraries/LibWeb/Page/Page.cpp @@ -24,8 +24,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include -#include +#include +#include #include namespace Web { diff --git a/Libraries/LibWeb/Page.h b/Libraries/LibWeb/Page/Page.h similarity index 100% rename from Libraries/LibWeb/Page.h rename to Libraries/LibWeb/Page/Page.h diff --git a/Libraries/LibWeb/PageView.cpp b/Libraries/LibWeb/PageView.cpp index 40e731adbfa..f8e72d3a4a9 100644 --- a/Libraries/LibWeb/PageView.cpp +++ b/Libraries/LibWeb/PageView.cpp @@ -40,18 +40,18 @@ #include #include #include -#include -#include #include #include +#include #include #include #include #include #include +#include +#include #include #include -#include #include #include diff --git a/Libraries/LibWeb/PageView.h b/Libraries/LibWeb/PageView.h index c16f78acb71..e3747a7cc68 100644 --- a/Libraries/LibWeb/PageView.h +++ b/Libraries/LibWeb/PageView.h @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include namespace Web { diff --git a/Services/WebContent/PageHost.cpp b/Services/WebContent/PageHost.cpp index ee17a96ece7..c0a2e82e92e 100644 --- a/Services/WebContent/PageHost.cpp +++ b/Services/WebContent/PageHost.cpp @@ -29,8 +29,8 @@ #include #include #include -#include #include +#include #include namespace WebContent { diff --git a/Services/WebContent/PageHost.h b/Services/WebContent/PageHost.h index 315f3b940da..fc48da1359e 100644 --- a/Services/WebContent/PageHost.h +++ b/Services/WebContent/PageHost.h @@ -26,7 +26,7 @@ #pragma once -#include +#include namespace WebContent {