Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
index 248855913c90503a327d2f8bdb1326f34b01938e..ffcaded6aaf24665be5d45937c13ae20bf4ae75f 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -4350,7 +4350,7 @@ void WebGLRenderingContextBase::texImage2D(GLenum target, GLint level, GLenum in |
type = GL_FLOAT; |
} |
- RefPtr<Image> imageForRender = image->cachedImage()->imageForLayoutObject(image->layoutObject()); |
+ RefPtr<Image> imageForRender = image->cachedImage()->image(); |
if (imageForRender && imageForRender->isSVGImage()) |
imageForRender = drawImageIntoBuffer(imageForRender.release(), image->width(), image->height(), "texImage2D"); |
@@ -4676,7 +4676,7 @@ void WebGLRenderingContextBase::texSubImage2D(GLenum target, GLint level, GLint |
type = GL_FLOAT; |
} |
- RefPtr<Image> imageForRender = image->cachedImage()->imageForLayoutObject(image->layoutObject()); |
+ RefPtr<Image> imageForRender = image->cachedImage()->image(); |
if (imageForRender && imageForRender->isSVGImage()) |
imageForRender = drawImageIntoBuffer(imageForRender.release(), image->width(), image->height(), "texSubImage2D"); |