Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp

Issue 2816543002: Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698