Bug 861731, remove redundent Connect, Attach call. r=nical

This commit is contained in:
Nicholas Cameron
2013-04-16 09:40:47 +12:00
parent 2e81048ec2
commit 153e522127

View File

@@ -278,11 +278,8 @@ BasicShadowableThebesLayer::PaintBuffer(gfxContext* aContext,
void* aCallbackData)
{
ContentClientRemote* contentClientRemote = static_cast<ContentClientRemote*>(mContentClient.get());
if (HasShadow() && !mContentClient->GetIPDLActor()) {
mContentClient->Connect();
BasicManager()->Attach(mContentClient, this);
}
MOZ_ASSERT(contentClientRemote->GetIPDLActor() || !HasShadow());
// NB: this just throws away the entire valid region if there are
// too many rects.
mValidRegion.SimplifyInward(8);