LibWeb: Misc. cleanup of code

Some things I came across while working on a bugfix. No functional
changes.
This commit is contained in:
Jelle Raaijmakers 2025-10-26 12:15:34 +01:00 committed by Jelle Raaijmakers
parent e4de6c0d05
commit 6f50c35d68
Notes: github-actions[bot] 2025-10-27 23:43:37 +00:00
4 changed files with 2 additions and 6 deletions

View file

@ -105,8 +105,7 @@ RefPtr<Gfx::Bitmap> SVGDecodedImageData::render(Gfx::IntSize size) const
if (!display_list)
return {};
auto painting_command_executor_type = m_page_client->display_list_player_type();
switch (painting_command_executor_type) {
switch (m_page_client->display_list_player_type()) {
case DisplayListPlayerType::SkiaGPUIfAvailable:
case DisplayListPlayerType::SkiaCPU: {
auto painting_surface = Gfx::PaintingSurface::wrap_bitmap(*bitmap);