1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibJS+LibWeb: Remove last uses of GlobalObject::associated_realm()

This commit is contained in:
Linus Groh 2022-08-27 01:03:50 +01:00
parent 50428ea8d2
commit 61bd9fef7d
3 changed files with 4 additions and 5 deletions

View file

@ -1081,8 +1081,7 @@ JS::Realm& Document::realm()
{
VERIFY(m_window);
VERIFY(m_window->wrapper());
VERIFY(m_window->wrapper()->associated_realm());
return *m_window->wrapper()->associated_realm();
return m_window->wrapper()->shape().realm();
}
JS::Interpreter& Document::interpreter()