mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:37:35 +00:00
LibWeb: Skip execution of painting commands with empty bounding rect
This commit is contained in:
parent
00c1da8cbc
commit
01058dac95
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ void RecordingPainter::execute(PaintingCommandExecutor& executor)
|
||||||
while (next_command_index < m_painting_commands.size()) {
|
while (next_command_index < m_painting_commands.size()) {
|
||||||
auto& command = m_painting_commands[next_command_index++];
|
auto& command = m_painting_commands[next_command_index++];
|
||||||
auto bounding_rect = command_bounding_rectangle(command);
|
auto bounding_rect = command_bounding_rectangle(command);
|
||||||
if (bounding_rect.has_value() && executor.would_be_fully_clipped_by_painter(*bounding_rect)) {
|
if (bounding_rect.has_value() && (bounding_rect->is_empty() || executor.would_be_fully_clipped_by_painter(*bounding_rect))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue