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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.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/BarcodeDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
index 95f145df441d28d5017dff1e6f72c7764f22e971..969ff229b2bd7abce4cbc75cc1d2966aa5680880 100644
--- a/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
@@ -11,8 +11,8 @@
namespace blink {
-BarcodeDetector* BarcodeDetector::create(ScriptState* scriptState) {
- return new BarcodeDetector(*scriptState->domWindow()->frame());
+BarcodeDetector* BarcodeDetector::create(Document& document) {
+ return new BarcodeDetector(*document.frame());
}
BarcodeDetector::BarcodeDetector(LocalFrame& frame) : ShapeDetector(frame) {}

Powered by Google App Engine
This is Rietveld 408576698