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

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

Issue 2928413002: Add RectF and PointF typemaps in blink. (Closed)
Patch Set: address comment Created 3 years, 6 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/FaceDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
index 2f5c485fd8376c02e511c1a4f0bd8571d29e7ed1..148fed7633f925dbcf461857bac0a3fb78edfbf0 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
@@ -65,8 +65,8 @@ void FaceDetector::OnDetectFaces(
HeapVector<Landmark> landmarks;
for (const auto& landmark : face->landmarks) {
Point2D location;
- location.setX(landmark->location->x);
- location.setY(landmark->location->y);
+ location.setX(landmark->location.x);
+ location.setY(landmark->location.y);
Landmark web_landmark;
web_landmark.setLocation(location);
if (landmark->type == shape_detection::mojom::blink::LandmarkType::EYE) {
@@ -79,8 +79,8 @@ void FaceDetector::OnDetectFaces(
}
detected_faces.push_back(DetectedFace::Create(
- DOMRect::Create(face->bounding_box->x, face->bounding_box->y,
- face->bounding_box->width, face->bounding_box->height),
+ DOMRect::Create(face->bounding_box.x, face->bounding_box.y,
+ face->bounding_box.width, face->bounding_box.height),
landmarks));
}

Powered by Google App Engine
This is Rietveld 408576698