diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-24 21:13:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-24 21:13:09 +0200 |
commit | e59bf87374f7cf7c58f0a08a4df2c92b4094b180 (patch) | |
tree | 8b7d8074c382c2fc5487450c0ca4b3eb4a2956f3 /Userland/Libraries/LibWeb/Loader | |
parent | 7fef8c5648769090de9df44ee324cc4a72f1c5aa (diff) | |
download | serenity-e59bf87374f7cf7c58f0a08a4df2c92b4094b180.zip |
Userland: Replace VERIFY(is<T>) with verify_cast<T>
Instead of doing a VERIFY(is<T>(x)) and *then* casting it to T, we can
just do the cast right away with verify_cast<T>. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index 89e3f836fa..8e6065deb6 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -276,7 +276,6 @@ void FrameLoader::resource_did_load() if (auto* host_element = browsing_context().host_element()) { // FIXME: Perhaps in the future we'll have a better common base class for <frame> and <iframe> - VERIFY(is<HTML::HTMLIFrameElement>(*host_element)); verify_cast<HTML::HTMLIFrameElement>(*host_element).nested_browsing_context_did_load({}); } |