mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Add a little assertion in Document::detach_from_frame()
Let's just assert that we're detaching from the frame we thought we were in.. just in case.
This commit is contained in:
parent
34d0141da3
commit
bceb5b60f7
Notes:
sideshowbarker
2024-07-19 00:52:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bceb5b60f79
1 changed files with 1 additions and 0 deletions
|
@ -288,6 +288,7 @@ void Document::attach_to_frame(Badge<Frame>, Frame& frame)
|
|||
|
||||
void Document::detach_from_frame(Badge<Frame>, Frame& frame)
|
||||
{
|
||||
ASSERT(&frame == m_frame);
|
||||
tear_down_layout_tree();
|
||||
m_frame = nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue