Bug 402338 - "outline property on inline-block painted too far outside" [p=roc r+sr=dbaron a=blocking1.9+]

This commit is contained in:
reed@reedloden.com 2007-11-08 22:49:38 -08:00
Родитель 9db9a73399
Коммит 2b71f12671
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -2635,11 +2635,13 @@ nsLineLayout::RelativePositionFrames(PerSpanData* psd, nsRect& aCombinedArea)
RelativePositionFrames(pfd->mSpan, r);
} else {
r = pfd->mCombinedArea;
if (pfd->GetFlag(PFD_RECOMPUTEOVERFLOW)) {
nsTextFrame* f = static_cast<nsTextFrame*>(frame);
r = f->RecomputeOverflowRect();
if (pfd->GetFlag(PFD_ISTEXTFRAME)) {
if (pfd->GetFlag(PFD_RECOMPUTEOVERFLOW)) {
nsTextFrame* f = static_cast<nsTextFrame*>(frame);
r = f->RecomputeOverflowRect();
}
frame->FinishAndStoreOverflow(&r, frame->GetSize());
}
frame->FinishAndStoreOverflow(&r, frame->GetSize());
// If we have something that's not an inline but with a complex frame
// hierarchy inside that contains views, they need to be