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

LibWeb: Make Document::paintable() return a ViewportPaintable

This commit is contained in:
Andreas Kling 2023-08-19 09:29:04 +02:00
parent 8bb275f2ea
commit 25375bf1d5
10 changed files with 34 additions and 11 deletions

View file

@ -100,7 +100,7 @@ void SVGDecodedImageData::render(Gfx::IntSize size) const
Gfx::Painter painter(*m_bitmap);
PaintContext context(painter, m_page_client->palette(), m_page_client->device_pixels_per_css_pixel());
verify_cast<Painting::ViewportPaintable>(*m_document->paintable_box()).paint_all_phases(context);
m_document->paintable()->paint_all_phases(context);
}
RefPtr<Gfx::Bitmap const> SVGDecodedImageData::bitmap(size_t, Gfx::IntSize size) const