From dfca5acfa3354eec7c7da6848b7ce29481c89bd4 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Mon, 22 Mar 2010 03:28:43 +0000 Subject: Speculative fix for developer-reported crash. Following bug instructions, the only crash I could reproduce was this timer-related one. TBR=erikkay@chromium.org BUG=35815 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42207 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/render_view.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/renderer') diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 5c0b630..c0d5b3f 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2924,6 +2924,9 @@ void RenderView::CheckPreferredSize() { // be put in that mode by getting a |ViewMsg_EnablePreferredSizeChangedMode| // message. if (send_preferred_size_changes_) { + if (!webview()) + return; + // WebCore likes to tell us things have changed even when they haven't, so // cache the width and height and only send the IPC message when we're sure // they're different. -- cgit v1.1