1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:28:11 +00:00

LibHTML: Join border edges nicely when painting boxes

Always paint border edges so they join nicely with their buddy edges.
This makes borders look nice even if all sides have different widths.

Also switch the border code to using floating point numbers since
otherwise things get very ugly very fast.
This commit is contained in:
Andreas Kling 2019-11-25 14:12:04 +01:00
parent 05b1ecf1b1
commit 320c79cb48
2 changed files with 66 additions and 13 deletions

View file

@ -38,7 +38,7 @@ private:
Bottom,
Left,
};
void paint_border(RenderingContext&, Edge, const Rect&, CSS::PropertyID style_property_id, CSS::PropertyID color_property_id, CSS::PropertyID width_property_id);
void paint_border(RenderingContext&, Edge, const FloatRect&, CSS::PropertyID style_property_id, CSS::PropertyID color_property_id, CSS::PropertyID width_property_id);
FloatRect m_rect;
};