mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +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
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…
Add table
Add a link
Reference in a new issue