Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
index 41eba55f6a1455e1b350099b0c0923cb146e6e85..b5a5517c544f52469217796e5374f821ae3e238d 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
@@ -825,7 +825,7 @@ void WebGL2RenderingContextBase::texSubImage3D(GLenum target, GLint level, GLint |
if (isContextLost() || !image || !validateHTMLImageElement("texSubImage3D", image, exceptionState)) |
return; |
- RefPtr<Image> imageForRender = image->cachedImage()->imageForLayoutObject(image->layoutObject()); |
+ RefPtr<Image> imageForRender = image->cachedImage()->image(); |
if (imageForRender->isSVGImage()) |
imageForRender = drawImageIntoBuffer(imageForRender.get(), image->width(), image->height(), "texSubImage3D"); |