mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement set_fill_style
This commit is contained in:
parent
cbe385c7d7
commit
93f1053b0e
1 changed files with 5 additions and 3 deletions
|
@ -34,11 +34,13 @@ impl Backend for RaqoteBackend {
|
|||
|
||||
fn set_fill_style<'a>(
|
||||
&mut self,
|
||||
_style: FillOrStrokeStyle,
|
||||
_state: &mut CanvasPaintState<'a>,
|
||||
style: FillOrStrokeStyle,
|
||||
state: &mut CanvasPaintState<'a>,
|
||||
_drawtarget: &dyn GenericDrawTarget,
|
||||
) {
|
||||
unimplemented!()
|
||||
if let Some(source) = style.to_raqote_source() {
|
||||
state.fill_style = Pattern::Raqote(source);
|
||||
}
|
||||
}
|
||||
|
||||
fn set_stroke_style<'a>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue