summaryrefslogtreecommitdiffstats
path: root/chrome/views/controls/native_control_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/controls/native_control_win.cc')
-rw-r--r--chrome/views/controls/native_control_win.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/views/controls/native_control_win.cc b/chrome/views/controls/native_control_win.cc
index 4e4f2f7..e8574f0 100644
--- a/chrome/views/controls/native_control_win.cc
+++ b/chrome/views/controls/native_control_win.cc
@@ -60,6 +60,9 @@ void NativeControlWin::ViewHierarchyChanged(bool is_add, View* parent,
// parent HWND to function properly.
if (is_add && GetWidget() && !GetHWND())
CreateNativeControl();
+
+ // Call the base class to hide the view if we're being removed.
+ HWNDView::ViewHierarchyChanged(is_add, parent, child);
}
void NativeControlWin::VisibilityChanged(View* starting_from, bool is_visible) {