mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibHTML: Use floating point numbers throughout the layout tree
This commit is contained in:
parent
da23864c8d
commit
c628ebda0f
15 changed files with 59 additions and 52 deletions
|
@ -13,7 +13,7 @@ LayoutListItemMarker::~LayoutListItemMarker()
|
|||
void LayoutListItemMarker::render(RenderingContext& context)
|
||||
{
|
||||
Rect bullet_rect { 0, 0, 4, 4 };
|
||||
bullet_rect.center_within(rect());
|
||||
bullet_rect.center_within(enclosing_int_rect(rect()));
|
||||
// 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