diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp index 93ce002b9a..399e1f9676 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp @@ -16,7 +16,7 @@ namespace Web::HTML { HTMLIFrameElement::HTMLIFrameElement(DOM::Document& document, DOM::QualifiedName qualified_name) : BrowsingContextContainer(document, move(qualified_name)) { - set_prototype(&document.window().cached_web_prototype("HTMLIFrameElement")); + set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLIFrameElement")); } HTMLIFrameElement::~HTMLIFrameElement() = default; @@ -144,7 +144,7 @@ void run_iframe_load_event_steps(HTML::HTMLIFrameElement& element) // FIXME: 4. Set childDocument's iframe load in progress flag. // 5. Fire an event named load at element. - element.dispatch_event(*DOM::Event::create(element.document().window(), HTML::EventNames::load)); + element.dispatch_event(*DOM::Event::create(element.realm(), HTML::EventNames::load)); // FIXME: 6. Unset childDocument's iframe load in progress flag. } |