aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-09-14 09:46:57 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-09-14 14:48:41 +0200
commit70a0174b0abef796a1d1500fa7a8b7dc395719e0 (patch)
tree776a42459ac681f5583e2e89347518e2a68709ce
parentfef04c65f6c7fd9d48b28752820f0b5b0c7df962 (diff)
downloadservo-70a0174b0abef796a1d1500fa7a8b7dc395719e0.tar.gz
servo-70a0174b0abef796a1d1500fa7a8b7dc395719e0.zip
Remove a panic due to missing video support
-rw-r--r--components/script/dom/webglrenderingcontext.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index eb7be0019e9..2f3df2adb7c 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -540,8 +540,10 @@ impl WebGLRenderingContext {
return Err(());
}
},
- ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement::HTMLVideoElement(_rooted_video)
- => unimplemented!(),
+ ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement::HTMLVideoElement(_) => {
+ // TODO: https://github.com/servo/servo/issues/6711
+ return Err(());
+ }
};
return Ok((pixels, size, premultiplied));