| Index: third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
|
| diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
|
| index ee3a5ad50ea948d637e7b09ed24c20f332f9f583..a2fa886ea3c0602a2ab2ed4c5a0c1eb88ffe88a0 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
|
| @@ -9,13 +9,19 @@
|
| namespace blink {
|
|
|
| DetectedFace* DetectedFace::create() {
|
| - return new DetectedFace();
|
| + return new DetectedFace(DOMRect::create());
|
| +}
|
| +
|
| +DetectedFace* DetectedFace::create(DOMRect* boundingBox) {
|
| + return new DetectedFace(boundingBox);
|
| }
|
|
|
| DOMRect* DetectedFace::boundingBox() const {
|
| return m_boundingBox.get();
|
| }
|
|
|
| +DetectedFace::DetectedFace(DOMRect* boundingBox) : m_boundingBox(boundingBox) {}
|
| +
|
| DEFINE_TRACE(DetectedFace) {
|
| visitor->trace(m_boundingBox);
|
| }
|
|
|