LibWeb: Rename Navigable::paint() to record_painting_commands()

This method does not paint, but only records painting commands that
could be passed to painting commands executor, which will perform
actual painting.
This commit is contained in:
Aliaksandr Kalenik
2024-06-10 02:40:57 +03:00
committed by Alexander Kalenik
parent 28927d6a0f
commit c7133faf26
5 changed files with 5 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ RefPtr<Gfx::Bitmap> SVGDecodedImageData::render(Gfx::IntSize size) const
Painting::RecordingPainter recording_painter(painting_commands);
Painting::CommandExecutorCPU executor { *bitmap };
m_document->navigable()->paint(recording_painter, {});
m_document->navigable()->record_painting_commands(recording_painter, {});
painting_commands.execute(executor);
return bitmap;