mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/SVG: Don't crash when a filter has no valid effects
This commit is contained in:
parent
0cff47828d
commit
438bb56160
Notes:
github-actions[bot]
2025-07-09 22:19:33 +00:00
Author: https://github.com/tcl3
Commit: 438bb56160
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5379
Reviewed-by: https://github.com/gmta ✅
5 changed files with 17 additions and 4 deletions
|
@ -653,7 +653,7 @@ void NodeWithStyle::apply_style(CSS::ComputedProperties const& computed_style)
|
|||
return;
|
||||
|
||||
if (auto* filter_element = as_if<SVG::SVGFilterElement>(*maybe_filter)) {
|
||||
Optional<Gfx::Filter> new_filter = filter_element->gfx_filter();
|
||||
auto new_filter = filter_element->gfx_filter();
|
||||
|
||||
if (!new_filter.has_value())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue