Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
index bda1e48da0c8e4ddd594b08a7ef90de6b80b935c..dd4c187feec869a3ff912f6012d1819a3d6931c7 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
@@ -194,12 +194,6 @@ class OmniboxViewViews::AutocompleteTextfield : public views::Textfield { |
omnibox_view_->HandleMouseReleaseEvent(event); |
} |
- protected: |
- // views::View implementation. |
- virtual void PaintChildren(gfx::Canvas* canvas) { |
- views::Textfield::PaintChildren(canvas); |
- } |
- |
private: |
OmniboxViewViews* omnibox_view_; |
LocationBarView* location_bar_view_; |
@@ -590,12 +584,7 @@ void OmniboxViewViews::SetFocus() { |
} |
void OmniboxViewViews::ApplyCaretVisibility() { |
- if (textfield_->cursor_color() != textfield_->background_color()) |
- visible_caret_color_ = textfield_->cursor_color(); |
- // Setting the color of the text cursor (caret) to the background color |
- // effectively hides it. |
- textfield_->SetCursorColor(model()->is_caret_visible() ? |
- visible_caret_color_ : textfield_->background_color()); |
samarth
2012/12/05 23:38:21
You can kill visible_caret_color_.
msw
2012/12/06 00:03:52
Done.
|
+ textfield_->SetCursorVisible(model()->is_caret_visible()); |
} |
void OmniboxViewViews::OnTemporaryTextMaybeChanged( |