| Index: content/renderer/browser_plugin/browser_plugin_backing_store.cc
|
| diff --git a/content/renderer/browser_plugin/browser_plugin_backing_store.cc b/content/renderer/browser_plugin/browser_plugin_backing_store.cc
|
| index 5b4d104a4197ba2a1d22b1bb47fb7c909b186d70..655262f804531d61afe54906120fa33330801185 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin_backing_store.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin_backing_store.cc
|
| @@ -35,7 +35,7 @@ void BrowserPluginBackingStore::PaintToBackingStore(
|
| if (bitmap_rect.IsEmpty())
|
| return;
|
|
|
| - gfx::Rect pixel_bitmap_rect = bitmap_rect.Scale(scale_factor_);
|
| + gfx::Rect pixel_bitmap_rect = bitmap_rect.ScaleUnsafe(scale_factor_);
|
|
|
| const int width = pixel_bitmap_rect.width();
|
| const int height = pixel_bitmap_rect.height();
|
| @@ -54,7 +54,7 @@ void BrowserPluginBackingStore::PaintToBackingStore(
|
| sk_bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
|
| sk_bitmap.setPixels(dib->memory());
|
| for (size_t i = 0; i < copy_rects.size(); i++) {
|
| - const gfx::Rect& pixel_copy_rect = copy_rects[i].Scale(scale_factor_);
|
| + const gfx::Rect& pixel_copy_rect = copy_rects[i].ScaleUnsafe(scale_factor_);
|
| int x = pixel_copy_rect.x() - pixel_bitmap_rect.x();
|
| int y = pixel_copy_rect.y() - pixel_bitmap_rect.y();
|
| SkIRect srcrect = SkIRect::MakeXYWH(x, y,
|
| @@ -75,7 +75,7 @@ void BrowserPluginBackingStore::ScrollBackingStore(
|
| int dy,
|
| const gfx::Rect& clip_rect,
|
| const gfx::Size& view_size) {
|
| - gfx::Rect pixel_rect = clip_rect.Scale(scale_factor_);
|
| + gfx::Rect pixel_rect = clip_rect.ScaleUnsafe(scale_factor_);
|
| int pixel_dx = dx * scale_factor_;
|
| int pixel_dy = dy * scale_factor_;
|
|
|
|
|