| Index: third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp
|
| diff --git a/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp
|
| index 4da8d7c02e90cd38f14dc4171cd7228afb774127..6725ce19ec24b77be3e3fff9d5bd72095829e44c 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp
|
| @@ -7,7 +7,7 @@
|
| #include "core/dom/DOMException.h"
|
| #include "core/dom/DOMRect.h"
|
| #include "core/dom/Document.h"
|
| -#include "core/fetch/ImageResource.h"
|
| +#include "core/fetch/ImageResourceContent.h"
|
| #include "core/frame/ImageBitmap.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/html/HTMLImageElement.h"
|
| @@ -149,7 +149,7 @@ ScriptPromise ShapeDetector::detectShapesOnImageElement(
|
| return promise;
|
| }
|
|
|
| - ImageResource* const imageResource = img->cachedImage();
|
| + ImageResourceContent* const imageResource = img->cachedImage();
|
| if (!imageResource || imageResource->errorOccurred()) {
|
| resolver->reject(DOMException::create(
|
| InvalidStateError, "Failed to load or decode HTMLImageElement."));
|
|
|