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

Unified Diff: webkit/plugins/npapi/plugin_instance.cc

Issue 12487003: Fix painting glitch with text and NPAPI plugins. This was a regression from r167042. The problem wa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix silverlight Created 7 years, 10 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 | « webkit/plugins/npapi/plugin_instance.h ('k') | webkit/plugins/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_instance.cc
===================================================================
--- webkit/plugins/npapi/plugin_instance.cc (revision 186240)
+++ webkit/plugins/npapi/plugin_instance.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/message_loop.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
+#include "net/base/escape.h"
#include "webkit/glue/webkit_glue.h"
#include "webkit/plugins/npapi/plugin_host.h"
#include "webkit/plugins/npapi/plugin_lib.h"
@@ -17,7 +18,7 @@
#include "webkit/plugins/npapi/plugin_string_stream.h"
#include "webkit/plugins/npapi/webplugin.h"
#include "webkit/plugins/npapi/webplugin_delegate.h"
-#include "net/base/escape.h"
+#include "webkit/plugins/plugin_constants.h"
#if defined(OS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
@@ -62,6 +63,9 @@
npp_->ndata = 0;
npp_->pdata = 0;
+ if (mime_type_ == kFlashPluginSwfMimeType)
+ transparent_ = false;
+
memset(&zero_padding_, 0, sizeof(zero_padding_));
DCHECK(message_loop_);
}
« no previous file with comments | « webkit/plugins/npapi/plugin_instance.h ('k') | webkit/plugins/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698