diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 03:28:43 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 03:28:43 +0000 |
commit | dfca5acfa3354eec7c7da6848b7ce29481c89bd4 (patch) | |
tree | 7131365387e4b1939149617ac106eaf1a2c4f802 /chrome/renderer | |
parent | 1c40c9086851c33fdb07f90c22c0bd0be2cfdc0a (diff) | |
download | chromium_src-dfca5acfa3354eec7c7da6848b7ce29481c89bd4.zip chromium_src-dfca5acfa3354eec7c7da6848b7ce29481c89bd4.tar.gz chromium_src-dfca5acfa3354eec7c7da6848b7ce29481c89bd4.tar.bz2 |
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
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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. |