Clear OOP CGContext for transparent plug-ins. b=557534 r=josh

--HG--
extra : rebase_source : 267e6db3a94758cc2834e5f48baf759bbaad1566
This commit is contained in:
Benoit Girard 2010-04-06 15:02:54 -04:00
parent 903db0b614
commit b53f0597df

View File

@ -625,6 +625,8 @@ PluginInstanceChild::AnswerNPP_HandleEvent_Shmem(const NPRemoteEvent& event,
return true;
}
}
CGRect clearRect = ::CGRectMake(0, 0, mWindow.width, mWindow.height);
::CGContextClearRect(mShContext, clearRect);
evcopy.data.draw.context = mShContext;
} else {
PLUGIN_LOG_DEBUG(("Invalid event type for AnswerNNP_HandleEvent_Shmem."));