diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-18 21:39:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-18 21:42:19 +0200 |
commit | 995d93c9d95e9d08edf6d1a104449546b1e14c01 (patch) | |
tree | 1ab11ed9ac6cb4d69ac1828d7398be36a02d8b24 /Libraries | |
parent | 8c82d2666889c154983bb138959a36590fa324c8 (diff) | |
download | serenity-995d93c9d95e9d08edf6d1a104449546b1e14c01.zip |
LibWeb: Move StackingContext from Layout/ to Painting/
The stacking context tree doesn't affect layout at all, so let's move
it into the Painting/ directory. I'm not sure yet if it's worth going
for a fullly separate painting tree. So far I'm thinking a stacking
context tree with pointers into the layout tree might be enough.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutBox.h | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutDocument.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/Painting/StackingContext.cpp (renamed from Libraries/LibWeb/Layout/StackingContext.cpp) | 0 | ||||
-rw-r--r-- | Libraries/LibWeb/Painting/StackingContext.h (renamed from Libraries/LibWeb/Layout/StackingContext.h) | 0 |
5 files changed, 3 insertions, 4 deletions
diff --git a/Libraries/LibWeb/CMakeLists.txt b/Libraries/LibWeb/CMakeLists.txt index 5ed0f65267..086caea7cb 100644 --- a/Libraries/LibWeb/CMakeLists.txt +++ b/Libraries/LibWeb/CMakeLists.txt @@ -94,7 +94,6 @@ set(SOURCES Layout/LayoutWidget.cpp Layout/LineBox.cpp Layout/LineBoxFragment.cpp - Layout/StackingContext.cpp LayoutTreeModel.cpp Loader/FrameLoader.cpp Loader/ImageLoader.cpp @@ -103,6 +102,7 @@ set(SOURCES Loader/ResourceLoader.cpp Page.cpp PageView.cpp + Painting/StackingContext.cpp Parser/CSSParser.cpp Parser/Entities.cpp Parser/HTMLDocumentParser.cpp @@ -113,7 +113,6 @@ set(SOURCES Parser/StackOfOpenElements.cpp StylePropertiesModel.cpp URLEncoder.cpp - CSS/PropertyID.h CSS/PropertyID.cpp CSS/DefaultStyleSheetSource.cpp diff --git a/Libraries/LibWeb/Layout/LayoutBox.h b/Libraries/LibWeb/Layout/LayoutBox.h index bad3078489..b088dd12dd 100644 --- a/Libraries/LibWeb/Layout/LayoutBox.h +++ b/Libraries/LibWeb/Layout/LayoutBox.h @@ -29,7 +29,7 @@ #include <AK/OwnPtr.h> #include <LibGfx/FloatRect.h> #include <LibWeb/Layout/LayoutNode.h> -#include <LibWeb/Layout/StackingContext.h> +#include <LibWeb/Painting/StackingContext.h> namespace Web { diff --git a/Libraries/LibWeb/Layout/LayoutDocument.cpp b/Libraries/LibWeb/Layout/LayoutDocument.cpp index f4821f4bac..e1fe368bd9 100644 --- a/Libraries/LibWeb/Layout/LayoutDocument.cpp +++ b/Libraries/LibWeb/Layout/LayoutDocument.cpp @@ -29,7 +29,7 @@ #include <LibWeb/Layout/LayoutDocument.h> #include <LibWeb/Layout/LayoutImage.h> #include <LibWeb/Layout/LayoutWidget.h> -#include <LibWeb/Layout/StackingContext.h> +#include <LibWeb/Painting/StackingContext.h> namespace Web { diff --git a/Libraries/LibWeb/Layout/StackingContext.cpp b/Libraries/LibWeb/Painting/StackingContext.cpp index 6ea1cd1381..6ea1cd1381 100644 --- a/Libraries/LibWeb/Layout/StackingContext.cpp +++ b/Libraries/LibWeb/Painting/StackingContext.cpp diff --git a/Libraries/LibWeb/Layout/StackingContext.h b/Libraries/LibWeb/Painting/StackingContext.h index 72751a198a..72751a198a 100644 --- a/Libraries/LibWeb/Layout/StackingContext.h +++ b/Libraries/LibWeb/Painting/StackingContext.h |