| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| index 407d7d15b9b06ff33068c6121bf0b2e457ba75ce..dc94b610b133ae38b9d0392604e8edb8fe37ac69 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -424,7 +424,7 @@ void HTMLCanvasElement::notifyListenersCanvasChanged()
|
|
|
| if (listenerNeedsNewFrameCapture) {
|
| SourceImageStatus status;
|
| - RefPtr<Image> sourceImage = getSourceImageForCanvas(&status, PreferNoAcceleration, SnapshotReasonCanvasListenerCapture);
|
| + RefPtr<Image> sourceImage = getSourceImageForCanvas(&status, PreferNoAcceleration, SnapshotReasonCanvasListenerCapture, FloatSize());
|
| if (status != NormalSourceImageStatus)
|
| return;
|
| RefPtr<SkImage> image = sourceImage->imageForCurrentFrame();
|
| @@ -969,7 +969,7 @@ void HTMLCanvasElement::didMoveToNewDocument(Document& oldDocument)
|
| HTMLElement::didMoveToNewDocument(oldDocument);
|
| }
|
|
|
| -PassRefPtr<Image> HTMLCanvasElement::getSourceImageForCanvas(SourceImageStatus* status, AccelerationHint hint, SnapshotReason reason) const
|
| +PassRefPtr<Image> HTMLCanvasElement::getSourceImageForCanvas(SourceImageStatus* status, AccelerationHint hint, SnapshotReason reason, const FloatSize&) const
|
| {
|
| if (!width() || !height()) {
|
| *status = ZeroSizeCanvasSourceImageStatus;
|
| @@ -1005,7 +1005,7 @@ bool HTMLCanvasElement::wouldTaintOrigin(SecurityOrigin*) const
|
| return !originClean();
|
| }
|
|
|
| -FloatSize HTMLCanvasElement::elementSize() const
|
| +FloatSize HTMLCanvasElement::elementSize(const FloatSize&) const
|
| {
|
| return FloatSize(width(), height());
|
| }
|
|
|