Index: webkit/glue/plugins/pepper_widget.h |
diff --git a/webkit/glue/plugins/pepper_widget.h b/webkit/glue/plugins/pepper_widget.h |
index cf937bd365e1f698a01ac4a02a1c8df8cbd6af5a..55d065048acab8cca0e0cdf01533bccc259b8cd1 100644 |
--- a/webkit/glue/plugins/pepper_widget.h |
+++ b/webkit/glue/plugins/pepper_widget.h |
@@ -27,7 +27,7 @@ class Widget : public Resource { |
static const PPB_Widget_Dev* GetInterface(); |
// Resource overrides. |
- Widget* AsWidget() { return this; } |
+ virtual Widget* AsWidget(); |
// PPB_Widget implementation. |
virtual bool Paint(const PP_Rect* rect, ImageData* image) = 0; |