canvas: Make draw_options non optional in fill_rect (#37603)

All other draw functions already have them non-optional and we always
passed `Some` anyway.

Testing: Existing WPT tests

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-06-21 11:34:28 +02:00 committed by GitHub
parent 927573de97
commit f370606fa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 15 deletions

View file

@ -93,7 +93,7 @@ pub(crate) trait GenericDrawTarget<B: Backend> {
&mut self,
rect: &Rect<f32>,
pattern: B::Pattern<'_>,
draw_options: Option<&B::DrawOptions>,
draw_options: &B::DrawOptions,
);
fn get_size(&self) -> Size2D<i32>;
fn get_transform(&self) -> Transform2D<f32>;