diff options
Diffstat (limited to 'webkit/glue/chrome_client_impl.cc')
-rw-r--r-- | webkit/glue/chrome_client_impl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc index b0eaf95..618869d 100644 --- a/webkit/glue/chrome_client_impl.cc +++ b/webkit/glue/chrome_client_impl.cc @@ -361,6 +361,9 @@ WebCore::IntRect ChromeClientImpl::windowResizerRect() const { void ChromeClientImpl::repaint( const WebCore::IntRect& paint_rect, bool content_changed, bool immediate, bool repaint_content_only) { + // Ignore spurious calls. + if (!content_changed || paint_rect.isEmpty()) + return; WebViewDelegate* d = webview_->delegate(); if (d) d->DidInvalidateRect(webview_, webkit_glue::FromIntRect(paint_rect)); |