From 6cbf8a34269fc0ee6dbfe4c1f071c7a28cd3b0b0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 19 Oct 2019 11:54:28 +0200 Subject: [PATCH] LibHTML: Use the correct inherited color for LayoutListItemMarker --- Libraries/LibHTML/Layout/LayoutListItemMarker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp b/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp index c82d79a1a1..2cbfd1cc57 100644 --- a/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp +++ b/Libraries/LibHTML/Layout/LayoutListItemMarker.cpp @@ -14,5 +14,6 @@ void LayoutListItemMarker::render(RenderingContext& context) { Rect bullet_rect { 0, 0, 4, 4 }; bullet_rect.center_within(rect()); - context.painter().fill_rect(bullet_rect, style().color_or_fallback(CSS::PropertyID::Color, document(), Color::Black)); + // FIXME: It would be nicer to not have to go via the parent here to get our inherited style. + context.painter().fill_rect(bullet_rect, parent()->style().color_or_fallback(CSS::PropertyID::Color, document(), Color::Black)); }