Index: webkit/plugins/ppapi/plugin_module.cc |
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc |
index 04862da5da3864bd60b12ae847641a9b0f5411eb..865962f40524d94b16b7e3c66c6bb6f74ee24059 100644 |
--- a/webkit/plugins/ppapi/plugin_module.cc |
+++ b/webkit/plugins/ppapi/plugin_module.cc |
@@ -203,8 +203,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) { |