Index: ui/gfx/render_text.cc |
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc |
index 416e96df7691cad32eb62a576900b9d0b9c2b513..5b9b8c4a56718b8a92e1d98aa41aae5f39da0fc3 100644 |
--- a/ui/gfx/render_text.cc |
+++ b/ui/gfx/render_text.cc |
@@ -843,7 +843,7 @@ void RenderText::DrawSelection(Canvas* canvas) { |
NativeTheme::kColorId_TextfieldSelectionBackgroundUnfocused; |
SkColor color = NativeTheme::instance()->GetSystemColor(color_id); |
for (std::vector<Rect>::const_iterator i = sel.begin(); i < sel.end(); ++i) |
- canvas->FillRect(color, *i); |
+ canvas->FillRect(*i, color); |
} |
void RenderText::DrawCursor(Canvas* canvas) { |
@@ -852,7 +852,7 @@ void RenderText::DrawCursor(Canvas* canvas) { |
if (cursor_enabled() && cursor_visible() && focused()) { |
const Rect& bounds = GetUpdatedCursorBounds(); |
if (bounds.width() != 0) |
- canvas->FillRect(kCursorColor, bounds); |
+ canvas->FillRect(bounds, kCursorColor); |
else |
canvas->DrawRect(bounds, kCursorColor); |
} |