mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
927573de97
commit
f370606fa8
3 changed files with 5 additions and 15 deletions
|
@ -766,14 +766,14 @@ impl<'a, B: Backend> CanvasData<'a, B> {
|
|||
new_draw_target.fill_rect(
|
||||
&draw_rect,
|
||||
self.state.fill_style.clone(),
|
||||
Some(&self.state.draw_options),
|
||||
&self.state.draw_options,
|
||||
);
|
||||
});
|
||||
} else {
|
||||
self.drawtarget.fill_rect(
|
||||
&draw_rect,
|
||||
self.state.fill_style.clone(),
|
||||
Some(&self.state.draw_options),
|
||||
&self.state.draw_options,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue