summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/views/hwnd_view.cc6
-rw-r--r--chrome/views/view.cc2
2 files changed, 3 insertions, 5 deletions
diff --git a/chrome/views/hwnd_view.cc b/chrome/views/hwnd_view.cc
index 8ecc9c0..55786b6 100644
--- a/chrome/views/hwnd_view.cc
+++ b/chrome/views/hwnd_view.cc
@@ -139,11 +139,7 @@ void HWNDView::DidChangeBounds(const gfx::Rect& previous,
}
void HWNDView::VisibilityChanged(View* starting_from, bool is_visible) {
- //UpdateHWNDBounds();
- if (IsVisibleInRootView())
- ::ShowWindow(hwnd_, SW_SHOW);
- else
- ::ShowWindow(hwnd_, SW_HIDE);
+ UpdateHWNDBounds();
}
gfx::Size HWNDView::GetPreferredSize() {
diff --git a/chrome/views/view.cc b/chrome/views/view.cc
index e65a0c9..3a06c3b 100644
--- a/chrome/views/view.cc
+++ b/chrome/views/view.cc
@@ -1480,6 +1480,8 @@ std::string View::GetClassName() const {
}
gfx::Rect View::GetVisibleBounds() {
+ if (!IsVisibleInRootView())
+ return gfx::Rect();
gfx::Rect vis_bounds(0, 0, width(), height());
gfx::Rect ancestor_bounds;
View* view = this;