Chromium Code Reviews| Index: chrome/browser/renderer_host/resource_message_filter.cc |
| diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc |
| index e3b18876b0fad7a4d330a0d3fbc1fb64f41a8352..9184e7055f3f1d1417199fa744cc892ef73fbbfc 100644 |
| --- a/chrome/browser/renderer_host/resource_message_filter.cc |
| +++ b/chrome/browser/renderer_host/resource_message_filter.cc |
| @@ -567,6 +567,11 @@ void ResourceMessageFilter::OnGetWindowRect(gfx::NativeViewId window_id, |
| // Returns the rectangle of the window in which this WebWidget is embedded. |
| void ResourceMessageFilter::OnGetRootWindowRect(gfx::NativeViewId window_id, |
| gfx::Rect* rect) { |
| + if (!window_id) { |
| + *rect = gfx::Rect(0, 0, 0, 0); |
|
Avi (use Gerrit)
2009/03/18 21:09:33
1. The default constructor for gfx::Rect will do t
|
| + return; |
| + } |
| + |
| // Windows uses GetAncestor(window, GA_ROOT) here which probably means |
| // we want the top level window. |
| GdkWindow* window = |