Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: webkit/plugins/ppapi/ppb_scrollbar_impl.h

Issue 7640001: Fix crash with print preview and the new scrollbar code that triggered an assert in WebKit side. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_scrollbar_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_scrollbar_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_scrollbar_impl.h (revision 96306)
+++ webkit/plugins/ppapi/ppb_scrollbar_impl.h (working copy)
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/task.h"
#include "ppapi/thunk/ppb_scrollbar_api.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarClient.h"
@@ -76,6 +77,9 @@
std::vector<WebKit::WebRect> tickmarks_;
scoped_ptr<WebKit::WebScrollbar> scrollbar_;
+ // Used so that the post task for Invalidate doesn't keep an extra reference.
+ ScopedRunnableMethodFactory<PPB_Scrollbar_Impl> method_factory_;
+
DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl);
};
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_scrollbar_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698