mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make create_pattern() return None for incomplete images
This commit is contained in:
parent
423b86e439
commit
481ef46167
10 changed files with 12 additions and 35 deletions
|
@ -210,7 +210,7 @@ impl OffscreenCanvasRenderingContext2DMethods for OffscreenCanvasRenderingContex
|
|||
&self,
|
||||
image: CanvasImageSource,
|
||||
repetition: DOMString,
|
||||
) -> Fallible<DomRoot<CanvasPattern>> {
|
||||
) -> Fallible<Option<DomRoot<CanvasPattern>>> {
|
||||
self.canvas_state
|
||||
.borrow()
|
||||
.create_pattern(&self.global(), image, repetition)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue