diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp b/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp index 7115b0ba34..8de111ab1b 100644 --- a/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp +++ b/Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp @@ -41,7 +41,7 @@ bool CSSStyleDeclarationWrapper::put(const JS::PropertyName& name, JS::Value val return false; ScopeGuard style_invalidation_guard = [&] { - auto& declaration = downcast<CSS::ElementInlineCSSStyleDeclaration>(impl()); + auto& declaration = verify_cast<CSS::ElementInlineCSSStyleDeclaration>(impl()); if (auto* element = declaration.element()) element->invalidate_style(); }; |