mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
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>()).
This commit is contained in:
parent
6215a9c2cb
commit
ee3a73ddbb
Notes:
sideshowbarker
2024-07-18 11:34:11 +09:00
Author: https://github.com/awesomekling
Commit: ee3a73ddbb
61 changed files with 262 additions and 262 deletions
|
@ -30,7 +30,7 @@ void HTMLStyleElement::children_changed()
|
|||
StringBuilder builder;
|
||||
for_each_child([&](auto& child) {
|
||||
if (is<DOM::Text>(child))
|
||||
builder.append(downcast<DOM::Text>(child).text_content());
|
||||
builder.append(verify_cast<DOM::Text>(child).text_content());
|
||||
});
|
||||
m_css_loader.load_from_text(builder.to_string());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue