1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibWeb: Shrink the inner border radii to accommodate the border widths

This fixes the shape of the subreddit logo on new reddit.
This commit is contained in:
MacDue 2022-07-26 20:43:53 +01:00 committed by Linus Groh
parent 890514a057
commit b68f48eb71
5 changed files with 16 additions and 10 deletions

View file

@ -123,7 +123,12 @@ protected:
virtual Gfx::FloatRect compute_absolute_rect() const;
Painting::BorderRadiiData normalized_border_radii_data() const;
enum class ShrinkRadiiForBorders {
Yes,
No
};
Painting::BorderRadiiData normalized_border_radii_data(ShrinkRadiiForBorders shrink = ShrinkRadiiForBorders::No) const;
private:
Optional<OverflowData> m_overflow_data;