mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 01:42:11 +00:00
LibGfx+LibWeb: Propagate OOM when creating PaintStyles
This commit is contained in:
parent
f0a99634dd
commit
3a0a7e3e96
5 changed files with 21 additions and 21 deletions
|
@ -45,7 +45,7 @@ NonnullRefPtr<Gfx::PaintStyle> CanvasState::FillOrStrokeStyle::to_gfx_paint_styl
|
|||
return m_fill_or_stroke_style.visit(
|
||||
[&](Gfx::Color color) -> NonnullRefPtr<Gfx::PaintStyle> {
|
||||
if (!m_color_paint_style)
|
||||
m_color_paint_style = Gfx::SolidColorPaintStyle::create(color);
|
||||
m_color_paint_style = Gfx::SolidColorPaintStyle::create(color).release_value_but_fixme_should_propagate_errors();
|
||||
return m_color_paint_style.release_nonnull();
|
||||
},
|
||||
[&](auto handle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue