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:
parent
7a6ad1b19c
commit
e649144a90
4 changed files with 10 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue