diff options
author | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 22:07:19 +0000 |
---|---|---|
committer | ddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 22:07:19 +0000 |
commit | 5c461ad29c4887f95c94e5a167963c96492291a2 (patch) | |
tree | c558d4d10b524c2d4b14a3979609646dd8c3eea8 /chrome | |
parent | b9002dcbd3ceff08972c9807247809f866895bb7 (diff) | |
download | chromium_src-5c461ad29c4887f95c94e5a167963c96492291a2.zip chromium_src-5c461ad29c4887f95c94e5a167963c96492291a2.tar.gz chromium_src-5c461ad29c4887f95c94e5a167963c96492291a2.tar.bz2 |
Fixed bug 64847: Graphics2D paints outside plugin boundaries. Also removed unused |origin| variables.
BUG=64847
TEST=Modify the first condition in example.cc::MyInstance::DidChangeView() to use "<=" instead of "==". On the example page, use the Toggle Size button to make the plugin larger then smaller. The plugin should not paint outside its boundary.
Review URL: http://codereview.chromium.org/6207002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index b5d6d1f..633c30b 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -1440,7 +1440,6 @@ void WebPluginDelegatePepper::Paint(WebKit::WebCanvas* canvas, DrawSkBitmapToCanvas(committed_bitmap_, canvas, window_rect_, static_cast<int>(CGBitmapContextGetHeight(canvas))); #else - gfx::Point origin(window_rect_.origin().x(), window_rect_.origin().y()); canvas->drawBitmap(committed_bitmap_, SkIntToScalar(window_rect_.origin().x()), SkIntToScalar(window_rect_.origin().y())); |