diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-24 19:41:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-24 19:43:27 +0200 |
commit | 440b4ece22dd0c165b4d8055ea2f066e8ba1c8c5 (patch) | |
tree | add16f69c209139e582ab6500232a5815d0fee67 /Libraries/LibWeb/Layout/LayoutListItem.h | |
parent | 4b2ac34725e85828b8e7f603c01a3bfc8fbb5de1 (diff) | |
download | serenity-440b4ece22dd0c165b4d8055ea2f066e8ba1c8c5.zip |
LibWeb: Move border width and color into LayoutStyle
To make this possible, I also had to give each LayoutNode a Document&
so it can resolve document-specific colors correctly. There's probably
ways to avoid having this extra member by resolving colors later, but
this works for now.
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutListItem.h')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutListItem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutListItem.h b/Libraries/LibWeb/Layout/LayoutListItem.h index b5d4b03a24..717eaa33ad 100644 --- a/Libraries/LibWeb/Layout/LayoutListItem.h +++ b/Libraries/LibWeb/Layout/LayoutListItem.h @@ -35,7 +35,7 @@ class LayoutListItemMarker; class LayoutListItem final : public LayoutBlock { public: - LayoutListItem(const Element&, NonnullRefPtr<StyleProperties>); + LayoutListItem(Document&, const Element&, NonnullRefPtr<StyleProperties>); virtual ~LayoutListItem() override; virtual void layout(LayoutMode = LayoutMode::Default) override; |