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 437ecae99a7c8b05f3439e40a38a56bbee1ea8ec..d74042ea47f4e850dda8d283eb1b56b6844b36cb 100644 |
--- a/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp |
+++ b/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp |
@@ -6,7 +6,6 @@ |
#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" |
@@ -78,7 +77,7 @@ ScriptPromise ShapeDetector::detect( |
} |
if (canvas_image_source->WouldTaintOrigin( |
- ExecutionContext::From(script_state)->GetSecurityOrigin())) { |
+ script_state->GetExecutionContext()->GetSecurityOrigin())) { |
resolver->Reject( |
DOMException::Create(kSecurityError, "Source would taint origin.")); |
return promise; |