mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Log error instead of crashing if stacking context painted twice
Turns out this mistake happens fairly often, so it is more preferable to log message and proceed instead of crashing.
This commit is contained in:
parent
130aff12b1
commit
7f0bafdbd0
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 7f0bafdbd0
Pull-request: https://github.com/SerenityOS/serenity/pull/24226
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ void StackingContext::sort()
|
|||
|
||||
void StackingContext::set_last_paint_generation_id(u64 generation_id)
|
||||
{
|
||||
VERIFY(!m_last_paint_generation_id.has_value() || m_last_paint_generation_id.value() < generation_id);
|
||||
if (m_last_paint_generation_id.has_value() && m_last_paint_generation_id.value() >= generation_id) {
|
||||
dbgln("FIXME: Painting commands are recorded twice for stacking context: {}", m_paintable->layout_node().debug_description());
|
||||
}
|
||||
m_last_paint_generation_id = generation_id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue