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

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 10084020: Removing defunct code around PureViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge tests. Created 8 years, 8 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
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 5b560e4e2025621391f12a0e2c64e2c85b9b8ac7..2243e15f7978cfe4795aa888ed642463a332d315 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -445,14 +445,12 @@ void Textfield::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
UpdateAllProperties();
#if defined(OS_WIN) && !defined(USE_AURA)
- if (!views::Widget::IsPureViews()) {
- // TODO(beng): remove this once NativeTextfieldWin subclasses
- // NativeControlWin. This is currently called to perform post-AddChildView
- // initialization for the wrapper.
- //
- // Remove the include for native_textfield_win.h above when you fix this.
- static_cast<NativeTextfieldWin*>(native_wrapper_)->AttachHack();
- }
+ // TODO(beng): remove this once NativeTextfieldWin subclasses
+ // NativeControlWin. This is currently called to perform post-AddChildView
+ // initialization for the wrapper.
+ //
+ // Remove the include for native_textfield_win.h above when you fix this.
+ static_cast<NativeTextfieldWin*>(native_wrapper_)->AttachHack();
#endif
}
}
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698