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

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

Issue 2539073002: Remove [ConstructorCallWith=ScriptState] from ShapeDetector (Closed)
Patch Set: temp Created 4 years 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/FaceDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
index 620cd8ed1f337c189f00c7b7a8dd6ecc01028568..4a6c8572c9a4d42c17798510ef0efd5cd98cc493 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
@@ -11,9 +11,9 @@
namespace blink {
-FaceDetector* FaceDetector::create(ScriptState* scriptState,
+FaceDetector* FaceDetector::create(Document& document,
const FaceDetectorOptions& options) {
- return new FaceDetector(*scriptState->domWindow()->frame(), options);
+ return new FaceDetector(*document.frame(), options);
}
FaceDetector::FaceDetector(LocalFrame& frame,

Powered by Google App Engine
This is Rietveld 408576698