Backed out changeset 3bab94261ee0 (bug 1355898)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Tue, 18 Apr 2017 12:16:28 +0200
changeset 375969 de3b2daf03b4
parent 375968 7595a01c76d1
child 375970 09e97b55acb3
push id11070
push usercbook@mozilla.com
push date2017-04-18 10:16 +0000
treeherdermozilla-aurora@09e97b55acb3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1355898
milestone54.0a2
backs out3bab94261ee0
Backed out changeset 3bab94261ee0 (bug 1355898)
dom/canvas/WebGLTextureUpload.cpp
--- a/dom/canvas/WebGLTextureUpload.cpp
+++ b/dom/canvas/WebGLTextureUpload.cpp
@@ -289,21 +289,17 @@ FromImageData(WebGLContext* webgl, const
                                                isAlphaPremult);
 }
 
 UniquePtr<webgl::TexUnpackBlob>
 WebGLContext::FromDomElem(const char* funcName, TexImageTarget target, uint32_t width,
                           uint32_t height, uint32_t depth, const dom::Element& elem,
                           ErrorResult* const out_error)
 {
-    // The canvas spec says that drawImage should draw the first frame of
-    // animated images. The webgl spec doesn't mention the issue, so we do the
-    // same as drawImage.
-    uint32_t flags = nsLayoutUtils::SFE_WANT_FIRST_FRAME_IF_IMAGE |
-                     nsLayoutUtils::SFE_WANT_IMAGE_SURFACE |
+    uint32_t flags = nsLayoutUtils::SFE_WANT_IMAGE_SURFACE |
                      nsLayoutUtils::SFE_USE_ELEMENT_SIZE_IF_VECTOR;
 
     if (mPixelStore_ColorspaceConversion == LOCAL_GL_NONE)
         flags |= nsLayoutUtils::SFE_NO_COLORSPACE_CONVERSION;
 
     if (!mPixelStore_PremultiplyAlpha)
         flags |= nsLayoutUtils::SFE_PREFER_NO_PREMULTIPLY_ALPHA;