diff options
-rw-r--r-- | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc index c1d3829..40a88df 100644 --- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc +++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc @@ -248,11 +248,8 @@ void PPB_Graphics2D_Impl::PaintImageData(PP_Resource image_data, operation.paint_image = image_resource; if (!ValidateAndConvertRect(src_rect, image_resource->width(), image_resource->height(), - &operation.paint_src_rect)) { - Log(PP_LOGLEVEL_ERROR, - "PPB_Graphics2D.PaintImageData: Rectangle is outside bounds."); + &operation.paint_src_rect)) return; - } // Validate the bitmap position using the previously-validated rect, there // should be no painted area outside of the image. @@ -278,11 +275,8 @@ void PPB_Graphics2D_Impl::Scroll(const PP_Rect* clip_rect, if (!ValidateAndConvertRect(clip_rect, image_data_->width(), image_data_->height(), - &operation.scroll_clip_rect)) { - Log(PP_LOGLEVEL_ERROR, - "PPB_Graphics2D.Scroll: Rectangle is outside bounds."); + &operation.scroll_clip_rect)) return; - } // If we're being asked to scroll by more than the clip rect size, just // ignore this scroll command and say it worked. |