mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
LibWeb: Remove ClearRect command in RecordingPainter
There is only one usage of ClearRect command and it could be replaced with FillRect to make set of commands in RecordingPainter smaller.
This commit is contained in:
parent
8922574133
commit
f32764975a
3 changed files with 1 additions and 27 deletions
|
@ -133,7 +133,7 @@ void PageHost::paint(Web::DevicePixelRect const& content_rect, Gfx::Bitmap& targ
|
|||
Web::PaintContext context(recording_painter, palette(), device_pixels_per_css_pixel());
|
||||
|
||||
if (background_color.alpha() < 255)
|
||||
recording_painter.clear_rect(bitmap_rect, Web::CSS::SystemColor::canvas());
|
||||
recording_painter.fill_rect(bitmap_rect, Web::CSS::SystemColor::canvas());
|
||||
recording_painter.fill_rect(bitmap_rect, background_color);
|
||||
|
||||
if (!document->paintable())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue