Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: webkit/glue/plugins/plugin_host.cc

Issue 431: Fixes the following bugs reported with the Silverlight plugin:-... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_host.cc
===================================================================
--- webkit/glue/plugins/plugin_host.cc (revision 1706)
+++ webkit/glue/plugins/plugin_host.cc (working copy)
@@ -173,6 +173,16 @@
DCHECK(plugin.get() != NULL);
if (plugin.get() && plugin->webplugin()) {
+ if (!plugin->windowless()) {
+ RECT rect = {0};
+ rect.left = invalidRect->left;
+ rect.right = invalidRect->right;
+ rect.top = invalidRect->top;
+ rect.bottom = invalidRect->bottom;
+ ::InvalidateRect(plugin->window_handle(), &rect, FALSE);
+ return;
+ }
+
if (plugin->throttle_invalidate()) {
// We need to track plugin invalidates on a per instance basis.
ThrottledInvalidates plugin_instance_invalidates;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698