mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibHTML: Use the correct inherited color for LayoutListItemMarker
This commit is contained in:
parent
5a34225999
commit
6cbf8a3426
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue