mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibGfx: Return early when painting FrameShape::NoFrames
This commit is contained in:
parent
52651f41b0
commit
e113e3ccaa
Notes:
sideshowbarker
2024-07-17 18:19:11 +09:00
Author: https://github.com/thankyouverycool
Commit: e113e3ccaa
Pull-request: https://github.com/SerenityOS/serenity/pull/12723
1 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,9 @@ void ClassicStylePainter::paint_button(Painter& painter, IntRect const& rect, Pa
|
||||||
|
|
||||||
void ClassicStylePainter::paint_frame(Painter& painter, IntRect const& rect, Palette const& palette, FrameShape shape, FrameShadow shadow, int thickness, bool skip_vertical_lines)
|
void ClassicStylePainter::paint_frame(Painter& painter, IntRect const& rect, Palette const& palette, FrameShape shape, FrameShadow shadow, int thickness, bool skip_vertical_lines)
|
||||||
{
|
{
|
||||||
|
if (shape == Gfx::FrameShape::NoFrame)
|
||||||
|
return;
|
||||||
|
|
||||||
Color top_left_color;
|
Color top_left_color;
|
||||||
Color bottom_right_color;
|
Color bottom_right_color;
|
||||||
Color dark_shade = palette.threed_shadow1();
|
Color dark_shade = palette.threed_shadow1();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue