diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 21:24:42 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 21:24:42 +0000 |
commit | a04f125f5fe5bbc56a3feaac4121a29452becedf (patch) | |
tree | 5121b9ab8c64747b940babce8f962ac70e1b1fc9 /chrome/browser/views/hung_renderer_view.cc | |
parent | b19f1cd7bf78c0d8cf23483d4bbf82466d93372e (diff) | |
download | chromium_src-a04f125f5fe5bbc56a3feaac4121a29452becedf.zip chromium_src-a04f125f5fe5bbc56a3feaac4121a29452becedf.tar.gz chromium_src-a04f125f5fe5bbc56a3feaac4121a29452becedf.tar.bz2 |
revert
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/hung_renderer_view.cc')
-rw-r--r-- | chrome/browser/views/hung_renderer_view.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/views/hung_renderer_view.cc b/chrome/browser/views/hung_renderer_view.cc index ef78677..4dc72f6 100644 --- a/chrome/browser/views/hung_renderer_view.cc +++ b/chrome/browser/views/hung_renderer_view.cc @@ -225,7 +225,7 @@ void HungRendererWarningView::ShowForWebContents(WebContents* contents) { HWND frame_hwnd = GetAncestor(contents->GetNativeView(), GA_ROOT); HWND foreground_window = GetForegroundWindow(); if (foreground_window != frame_hwnd && - foreground_window != window()->GetNativeWindow()) { + foreground_window != window()->GetNativeView()) { return; } @@ -403,7 +403,8 @@ gfx::Rect HungRendererWarningView::GetDisplayBounds( CRect contents_bounds; GetWindowRect(contents_hwnd, &contents_bounds); - gfx::Rect window_bounds = window()->GetBounds(); + gfx::Rect window_bounds; + window()->GetBounds(&window_bounds, true); int window_x = contents_bounds.left + (contents_bounds.Width() - window_bounds.width()) / 2; |