Bug 426738 - SVG text in hyperlink appears to have incorrect length. r+sr=roc,a1.9=beltzner

This commit is contained in:
longsonr@gmail.com 2008-04-07 15:27:52 -07:00
parent 321bfc5808
commit 3d6a5cc784

View File

@ -1378,14 +1378,15 @@ CharacterIterator::SetupFor(gfxContext *aContext, float aScale)
aContext->SetMatrix(mInitialMatrix);
if (mPositions.IsEmpty()) {
gfxFloat advance = mCurrentAdvance/nsSVGGlyphFrame::GetTextRunUnitsFactor();
aContext->Translate(mSource->mPosition + gfxPoint(advance, 0));
aContext->Translate(mSource->mPosition);
aContext->Scale(aScale, aScale);
aContext->Translate(gfxPoint(mCurrentAdvance, 0));
} else {
aContext->Translate(mPositions[mCurrentChar].pos);
aContext->Rotate(mPositions[mCurrentChar].angle);
}
aContext->Scale(aScale, aScale);
}
}
CharacterPosition
CharacterIterator::GetPositionData()