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 01fc2ac62b9849ede2e4d98b0d73447fdedc8672..a55126b93e5214f3c30b6d667b8ffbdd839459bc 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
@@ -867,8 +867,7 @@ int HTMLImageElement::sourceWidth() { |
SourceImageStatus status; |
FloatSize defaultObjectSize(width(), height()); |
RefPtr<Image> image = getSourceImageForCanvas( |
- &status, PreferNoAcceleration, SnapshotReasonCopyToWebGLTexture, |
- defaultObjectSize); |
+ &status, PreferNoAcceleration, SnapshotReasonUnknown, defaultObjectSize); |
return image->width(); |
} |
@@ -876,8 +875,7 @@ int HTMLImageElement::sourceHeight() { |
SourceImageStatus status; |
FloatSize defaultObjectSize(width(), height()); |
RefPtr<Image> image = getSourceImageForCanvas( |
- &status, PreferNoAcceleration, SnapshotReasonCopyToWebGLTexture, |
- defaultObjectSize); |
+ &status, PreferNoAcceleration, SnapshotReasonUnknown, defaultObjectSize); |
return image->height(); |
} |