summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutCanvas.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-24 19:41:12 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-24 19:43:27 +0200
commit440b4ece22dd0c165b4d8055ea2f066e8ba1c8c5 (patch)
treeadd16f69c209139e582ab6500232a5815d0fee67 /Libraries/LibWeb/Layout/LayoutCanvas.cpp
parent4b2ac34725e85828b8e7f603c01a3bfc8fbb5de1 (diff)
downloadserenity-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/LayoutCanvas.cpp')
-rw-r--r--Libraries/LibWeb/Layout/LayoutCanvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutCanvas.cpp b/Libraries/LibWeb/Layout/LayoutCanvas.cpp
index 5c6fbd2591..bd24c4bb0c 100644
--- a/Libraries/LibWeb/Layout/LayoutCanvas.cpp
+++ b/Libraries/LibWeb/Layout/LayoutCanvas.cpp
@@ -31,8 +31,8 @@
namespace Web {
-LayoutCanvas::LayoutCanvas(const HTMLCanvasElement& element, NonnullRefPtr<StyleProperties> style)
- : LayoutReplaced(element, move(style))
+LayoutCanvas::LayoutCanvas(Document& document, const HTMLCanvasElement& element, NonnullRefPtr<StyleProperties> style)
+ : LayoutReplaced(document, element, move(style))
{
}