Index: third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
index 829c9cec6230a32676d53bcf431dfcbe46e93f03..ae94760df80dc15558cfd47ca4327036312ba7e1 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
@@ -603,7 +603,7 @@ PassRefPtr<Image> HTMLImageElement::getSourceImageForCanvas(SourceImageStatus* s |
return nullptr; |
} |
- RefPtr<Image> sourceImage = cachedImage()->imageForLayoutObject(layoutObject()); |
+ RefPtr<Image> sourceImage = cachedImage()->image(); |
// We need to synthesize a container size if a layoutObject is not available to provide one. |
if (!layoutObject() && sourceImage->usesContainerSize()) |