| 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 40d8b500bbf176cd06f091ad89b7b9c7f4b4e287..7511b30e3909957401b419099360b25114d6fa16 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
|
| @@ -806,6 +806,22 @@ bool HTMLImageElement::isOpaque() const
|
| return image && image->currentFrameKnownToBeOpaque();
|
| }
|
|
|
| +int HTMLImageElement::sourceWidth()
|
| +{
|
| + SourceImageStatus status;
|
| + FloatSize defaultObjectSize(width(), height());
|
| + RefPtr<Image> image = getSourceImageForCanvas(&status, PreferNoAcceleration, SnapshotReasonCopyToWebGLTexture, defaultObjectSize);
|
| + return image->width();
|
| +}
|
| +
|
| +int HTMLImageElement::sourceHeight()
|
| +{
|
| + SourceImageStatus status;
|
| + FloatSize defaultObjectSize(width(), height());
|
| + RefPtr<Image> image = getSourceImageForCanvas(&status, PreferNoAcceleration, SnapshotReasonCopyToWebGLTexture, defaultObjectSize);
|
| + return image->height();
|
| +}
|
| +
|
| IntSize HTMLImageElement::bitmapSourceSize() const
|
| {
|
| ImageResource* image = cachedImage();
|
|
|