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

LibWeb: Replace ScriptExecutionContext::interpreter() with realm()

Here goes another step towards Document not having a JS::Interpreter.
This commit is contained in:
Andreas Kling 2021-09-19 15:39:40 +02:00
parent 7a6ad1b19c
commit e649144a90
4 changed files with 10 additions and 5 deletions

View file

@ -630,6 +630,11 @@ Color Document::visited_link_color() const
return page()->palette().visited_link();
}
JS::Realm& Document::realm()
{
return interpreter().realm();
}
JS::Interpreter& Document::interpreter()
{
if (!m_interpreter) {