From b6e4beca3a071606c537af2d55eba21d99769cb0 Mon Sep 17 00:00:00 2001 From: "joshia@google.com" Date: Wed, 12 Nov 2008 01:17:15 +0000 Subject: Prevent crash due to DIB allocation failure Change the way we capture tab thumbnail images so that the capturing code can deal with failure. BUG=3795 Review URL: http://codereview.chromium.org/9717 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5244 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webframe_impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webkit/glue/webframe_impl.h') diff --git a/webkit/glue/webframe_impl.h b/webkit/glue/webframe_impl.h index af92cd2..ce2521a 100644 --- a/webkit/glue/webframe_impl.h +++ b/webkit/glue/webframe_impl.h @@ -111,7 +111,8 @@ class WebFrameImpl : public WebFrame { virtual WebFrame* GetParent() const; virtual WebFrame* GetChildFrame(const std::wstring& xpath) const; virtual WebView* GetView() const; - virtual gfx::BitmapPlatformDevice CaptureImage(bool scroll_to_zero); + virtual bool CaptureImage(scoped_ptr* image, + bool scroll_to_zero); // This method calls createRuntimeObject (in KJS::Bindings::Instance), which // increments the refcount of the NPObject passed in. -- cgit v1.1