mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 617718. Don't process invalidates if we're stopping. r=bsmedberg a=bsmedberg
This commit is contained in:
parent
f3d58d75da
commit
7e680fa911
@ -1126,6 +1126,9 @@ nsNPAPIPluginInstance::GetDOMElement(nsIDOMElement* *result)
|
||||
NS_IMETHODIMP
|
||||
nsNPAPIPluginInstance::InvalidateRect(NPRect *invalidRect)
|
||||
{
|
||||
if (RUNNING != mRunning)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIPluginInstanceOwner> owner;
|
||||
GetOwner(getter_AddRefs(owner));
|
||||
if (!owner)
|
||||
@ -1137,6 +1140,9 @@ nsNPAPIPluginInstance::InvalidateRect(NPRect *invalidRect)
|
||||
NS_IMETHODIMP
|
||||
nsNPAPIPluginInstance::InvalidateRegion(NPRegion invalidRegion)
|
||||
{
|
||||
if (RUNNING != mRunning)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIPluginInstanceOwner> owner;
|
||||
GetOwner(getter_AddRefs(owner));
|
||||
if (!owner)
|
||||
@ -1148,6 +1154,9 @@ nsNPAPIPluginInstance::InvalidateRegion(NPRegion invalidRegion)
|
||||
NS_IMETHODIMP
|
||||
nsNPAPIPluginInstance::ForceRedraw()
|
||||
{
|
||||
if (RUNNING != mRunning)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIPluginInstanceOwner> owner;
|
||||
GetOwner(getter_AddRefs(owner));
|
||||
if (!owner)
|
||||
|
Loading…
Reference in New Issue
Block a user