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

--HG--
extra : rebase_source : af4a88fd5ddd8cecfceea49e88eebb37bf833517
This commit is contained in:
Nicholas Cameron 2013-04-16 09:40:47 +12:00
parent 4febdbc832
commit cc237262da

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);