зеркало из 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 (NS_STYLE_DIRECTION_LTR == mOuterReflowState.mDirection) {
|
||||||
if (mPlacedLeftFloater) {
|
if (mPlacedLeftFloater) {
|
||||||
// XXX revise loop
|
PerFrameData* pfd = mFrameDataBase;
|
||||||
nsIFrame* frame = mFrameDataBase->mFrame;
|
PerFrameData* end = pfd + mFrameNum;
|
||||||
PRInt32 n = mFrameNum;
|
for (; pfd < end; pfd++) {
|
||||||
while (--n >= 0) {
|
pfd->mBounds.x = mX;
|
||||||
nsRect r;
|
|
||||||
frame->GetRect(r);
|
|
||||||
r.x = mX;
|
|
||||||
frame->SetRect(r);
|
|
||||||
frame->GetNextSibling(frame);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче