Index: Source/core/html/HTMLImageElement.cpp |
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp |
index 7ca6d672707f5e57b4a29610635764505372dcbe..72b2c0be699196ff3d0262c5606a5e6fcde3d34f 100644 |
--- a/Source/core/html/HTMLImageElement.cpp |
+++ b/Source/core/html/HTMLImageElement.cpp |
@@ -604,7 +604,7 @@ bool HTMLImageElement::wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigi |
ImageResource* image = cachedImage(); |
if (!image) |
return false; |
- return !image->isAccessAllowed(destinationSecurityOrigin); |
+ return !image->isAccessAllowed(&document(), destinationSecurityOrigin); |
} |
FloatSize HTMLImageElement::sourceSize() const |