summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-23 17:27:20 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-23 17:27:20 +0100
commitca85ac26d4063bd0ad1be2b80277d9af4cb8944a (patch)
tree08416ed7c3ffb25989da708dbc8594de5aaa190e
parentfb9ee26c43df14f582db2a39aee87ca161ed0884 (diff)
downloadserenity-ca85ac26d4063bd0ad1be2b80277d9af4cb8944a.zip
WebContent: Fill OOPWV with palette base color when there's no content
-rw-r--r--Userland/Services/WebContent/PageHost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/PageHost.cpp b/Userland/Services/WebContent/PageHost.cpp
index c962f99e82..b5d22f0418 100644
--- a/Userland/Services/WebContent/PageHost.cpp
+++ b/Userland/Services/WebContent/PageHost.cpp
@@ -84,7 +84,7 @@ void PageHost::paint(const Gfx::IntRect& content_rect, Gfx::Bitmap& target)
auto* layout_root = this->layout_root();
if (!layout_root) {
- painter.fill_rect(bitmap_rect, Color::White);
+ painter.fill_rect(bitmap_rect, palette().base());
return;
}