Index: webkit/plugins/ppapi/plugin_module.cc |
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc |
index ca3c38b9558d1e15f5d9b535b5415ac8e57f8f48..2dd9d059fa7af48d510b75c5d3cdafaaca819167 100644 |
--- a/webkit/plugins/ppapi/plugin_module.cc |
+++ b/webkit/plugins/ppapi/plugin_module.cc |
@@ -204,8 +204,7 @@ PP_Bool ReadImageData(PP_Resource device_context_2d, |
EnterResource<PPB_Graphics2D_API> enter(device_context_2d, true); |
if (enter.failed()) |
return PP_FALSE; |
- return BoolToPPBool(static_cast<PPB_Graphics2D_Impl*>(enter.object())-> |
- ReadImageData(image, top_left)); |
+ return BoolToPPBool(enter.object()->ReadImageData(image, top_left)); |
} |
void RunMessageLoop(PP_Instance instance) { |