summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-10 15:50:57 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-11 00:21:49 +0100
commit053766d79cc0916d073a96c3b4a515ba9d714cf6 (patch)
tree48f92ceeaeb5bc19dc262f6174749b249f1514f7 /Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp
parent0500dbc3f6e132cc4cb25b53812e2e71d04ff326 (diff)
downloadserenity-053766d79cc0916d073a96c3b4a515ba9d714cf6.zip
LibWeb: Split Paintable into Paintable and PaintableBox
To prepare for paintable inline content, we take the basic painting functionality and hoist it into a base class.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp b/Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp
index 5ef89071b2..a932bd36db 100644
--- a/Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp
+++ b/Userland/Libraries/LibWeb/Painting/NestedBrowsingContextPaintable.cpp
@@ -18,18 +18,18 @@ NonnullOwnPtr<NestedBrowsingContextPaintable> NestedBrowsingContextPaintable::cr
}
NestedBrowsingContextPaintable::NestedBrowsingContextPaintable(Layout::FrameBox const& layout_box)
- : Paintable(layout_box)
+ : PaintableBox(layout_box)
{
}
Layout::FrameBox const& NestedBrowsingContextPaintable::layout_box() const
{
- return static_cast<Layout::FrameBox const&>(m_layout_box);
+ return static_cast<Layout::FrameBox const&>(layout_node());
}
void NestedBrowsingContextPaintable::paint(PaintContext& context, PaintPhase phase) const
{
- Paintable::paint(context, phase);
+ PaintableBox::paint(context, phase);
if (phase == PaintPhase::Foreground) {
auto* hosted_document = layout_box().dom_node().content_document_without_origin_check();