Index: views/controls/native_control.cc |
=================================================================== |
--- views/controls/native_control.cc (revision 86083) |
+++ views/controls/native_control.cc (working copy) |
@@ -195,7 +195,7 @@ |
AddChildView(hwnd_view_); |
} |
- if (!container_ && IsVisible()) { |
+ if (!container_ && visible()) { |
container_ = new NativeControlContainer(this); |
container_->Init(); |
hwnd_view_->Attach(*container_); |
@@ -302,7 +302,7 @@ |
} |
void NativeControl::SetVisible(bool f) { |
- if (f != IsVisible()) { |
+ if (f != visible()) { |
View::SetVisible(f); |
if (!f && container_) { |
::DestroyWindow(*container_); |