mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user