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

Unified Diff: ui/gfx/render_text.cc

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats Created 8 years, 1 month 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: ui/gfx/render_text.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index 55f0e0c68b848f6fce4a86f14ba8a38463ab1c89..2cedd9d5a21755d094e38d10c9b6575e265d908c 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -1002,7 +1002,7 @@ void RenderText::UpdateCachedBoundsAndOffset() {
gfx::Vector2d delta_offset(delta_x, 0);
display_offset_ += delta_offset;
- cursor_bounds_.Offset(delta_offset);
+ cursor_bounds_ += delta_offset;
}
void RenderText::DrawSelection(Canvas* canvas) {
« .gitmodules ('K') | « ui/gfx/rect_unittest.cc ('k') | ui/gfx/vector2d_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698