mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-06 16:09:30 +00:00
LibWeb: Avoid copying commands in RecordingPainter
This commit is contained in:
parent
4ee3090a7d
commit
97f676dbf2
|
@ -615,7 +615,7 @@ private:
|
||||||
|
|
||||||
void push_command(PaintingCommand command)
|
void push_command(PaintingCommand command)
|
||||||
{
|
{
|
||||||
m_painting_commands.append({ state().scroll_frame_id, command });
|
m_painting_commands.append({ state().scroll_frame_id, move(command) });
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PaintingCommandWithScrollFrame {
|
struct PaintingCommandWithScrollFrame {
|
||||||
|
|
Loading…
Reference in a new issue