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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/TextDetector.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/TextDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
index 1d6ad2742d6e179c8750a2510500e0939bfe1f5e..45e49a035ac9356adf1c8faf8c863772f3f23bc4 100644
--- a/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
@@ -51,9 +51,8 @@ void TextDetector::OnDetectText(
for (const auto& text : text_detection_results) {
detected_text.push_back(DetectedText::Create(
text->raw_value,
- DOMRect::Create(text->bounding_box->x, text->bounding_box->y,
- text->bounding_box->width,
- text->bounding_box->height)));
+ DOMRect::Create(text->bounding_box.x, text->bounding_box.y,
+ text->bounding_box.width, text->bounding_box.height)));
}
resolver->Resolve(detected_text);

Powered by Google App Engine
This is Rietveld 408576698