diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-24 19:53:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-24 19:57:01 +0200 |
commit | ee3a73ddbb90f6ebab22e099c34e1aae400a81d1 (patch) | |
tree | 57c053e3124f18ee3239fe8dbad831b7708e3ee8 /Userland/Libraries/LibWeb/Layout/FrameBox.h | |
parent | 6215a9c2cbdfe0c631ed339e5266580d271a3882 (diff) | |
download | serenity-ee3a73ddbb90f6ebab22e099c34e1aae400a81d1.zip |
AK: Rename downcast<T> => verify_cast<T>
This makes it much clearer what this cast actually does: it will
VERIFY that the thing we're casting is a T (using is<T>()).
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FrameBox.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FrameBox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FrameBox.h b/Userland/Libraries/LibWeb/Layout/FrameBox.h index 8646663550..d055bd07a1 100644 --- a/Userland/Libraries/LibWeb/Layout/FrameBox.h +++ b/Userland/Libraries/LibWeb/Layout/FrameBox.h @@ -19,8 +19,8 @@ public: virtual void paint(PaintContext&, PaintPhase) override; virtual void prepare_for_replaced_layout() override; - const HTML::HTMLIFrameElement& dom_node() const { return downcast<HTML::HTMLIFrameElement>(ReplacedBox::dom_node()); } - HTML::HTMLIFrameElement& dom_node() { return downcast<HTML::HTMLIFrameElement>(ReplacedBox::dom_node()); } + const HTML::HTMLIFrameElement& dom_node() const { return verify_cast<HTML::HTMLIFrameElement>(ReplacedBox::dom_node()); } + HTML::HTMLIFrameElement& dom_node() { return verify_cast<HTML::HTMLIFrameElement>(ReplacedBox::dom_node()); } private: virtual void did_set_rect() override; |