| 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 e54dd68ed09b459be4a45ec16f05e405225fb105..3287f40d0df71d0348805d9b5a4bd2f39c237fb1 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "core/dom/DOMException.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/frame/ImageBitmap.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/geometry/DOMRect.h"
|
| @@ -77,7 +78,7 @@ ScriptPromise ShapeDetector::detect(
|
| }
|
|
|
| if (canvas_image_source->WouldTaintOrigin(
|
| - script_state->GetExecutionContext()->GetSecurityOrigin())) {
|
| + ExecutionContext::From(script_state)->GetSecurityOrigin())) {
|
| resolver->Reject(
|
| DOMException::Create(kSecurityError, "Source would taint origin."));
|
| return promise;
|
|
|