mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1312242 - Provide a default bgcolor flash var. Addresses a background transparency problem with transparent flash and async painting. r=aklotz
MozReview-Commit-ID: KEzb1vkkNXG
This commit is contained in:
parent
0a787f4951
commit
bb379754c1
@ -2731,6 +2731,17 @@ PluginModuleParent::NPP_NewInternal(NPMIMEType pluginType, NPP instance,
|
||||
values.AppendElement(opaqueAttributeValue);
|
||||
}
|
||||
}
|
||||
|
||||
// Update the flashvar bgcolor if it's not set, fixes a rendering problem with
|
||||
// async plugin painting and transparent flash.
|
||||
if (supportsAsyncRender) {
|
||||
NS_NAMED_LITERAL_CSTRING(bgcolorAttributeName, "bgcolor");
|
||||
NS_NAMED_LITERAL_CSTRING(bgcolorAttributeDefault, "#FFFFFF");
|
||||
if (!names.Contains(bgcolorAttributeName)) {
|
||||
names.AppendElement(bgcolorAttributeName);
|
||||
values.AppendElement(bgcolorAttributeDefault);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user