зеркало из https://github.com/mozilla/pjs.git
Revised frame sliding loop to use the pfd instead of the kid frames rect since now the kids rect is not valid until after vertical alignment
This commit is contained in:
Родитель
1dfacf973c
Коммит
9676cf2b6c
|
@ -124,15 +124,10 @@ nsInlineReflow::UpdateFrames()
|
|||
{
|
||||
if (NS_STYLE_DIRECTION_LTR == mOuterReflowState.mDirection) {
|
||||
if (mPlacedLeftFloater) {
|
||||
// XXX revise loop
|
||||
nsIFrame* frame = mFrameDataBase->mFrame;
|
||||
PRInt32 n = mFrameNum;
|
||||
while (--n >= 0) {
|
||||
nsRect r;
|
||||
frame->GetRect(r);
|
||||
r.x = mX;
|
||||
frame->SetRect(r);
|
||||
frame->GetNextSibling(frame);
|
||||
PerFrameData* pfd = mFrameDataBase;
|
||||
PerFrameData* end = pfd + mFrameNum;
|
||||
for (; pfd < end; pfd++) {
|
||||
pfd->mBounds.x = mX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче