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

Unified Diff: views/ime/input_method_base.cc

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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: views/ime/input_method_base.cc
diff --git a/views/ime/input_method_base.cc b/views/ime/input_method_base.cc
index 857cfeeddd1f460611f907339a99365be91fcda1..f2d8fcbd24d376d637e87120d2f2e388aee6a724 100644
--- a/views/ime/input_method_base.cc
+++ b/views/ime/input_method_base.cc
@@ -96,13 +96,7 @@ bool InputMethodBase::GetCaretBoundsInWidget(gfx::Rect* rect) const {
return false;
*rect = client->GetCaretBounds();
- gfx::Point origin = rect->origin();
- gfx::Point end = gfx::Point(rect->right(), rect->bottom());
-
- View::ConvertPointToWidget(focused_view_, &origin);
- View::ConvertPointToWidget(focused_view_, &end);
- rect->SetRect(origin.x(), origin.y(),
- end.x() - origin.x(), end.y() - origin.y());
+ View::ConvertRectToWidget(focused_view_, rect);
// We need to do coordinate conversion if the focused view is inside a child
// Widget.

Powered by Google App Engine
This is Rietveld 408576698