зеркало из https://github.com/mozilla/pjs.git
Translate trapezoid into proper coordinate system
This commit is contained in:
Родитель
121eee5513
Коммит
62ecd33b0a
|
@ -285,21 +285,13 @@ nsBlockBandData::ClearFloaters(nscoord aY, PRUint8 aBreakType)
|
|||
for (fn = 0; fn < numFrames; fn++) {
|
||||
nsIFrame* frame = (nsIFrame*) trapezoid->frames->ElementAt(fn);
|
||||
if (ShouldClearFrame(frame, aBreakType)) {
|
||||
#if 0
|
||||
nscoord ym = GetFrameYMost(frame);
|
||||
#else
|
||||
nscoord ym = trapezoid->yBottom;
|
||||
#endif
|
||||
nscoord ym = trapezoid->yBottom + mSpaceManagerY;
|
||||
if (ym > yMost) yMost = ym;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ShouldClearFrame(trapezoid->frame, aBreakType)) {
|
||||
#if 0
|
||||
nscoord ym = GetFrameYMost(trapezoid->frame);
|
||||
#else
|
||||
nscoord ym = trapezoid->yBottom;
|
||||
#endif
|
||||
nscoord ym = trapezoid->yBottom + mSpaceManagerY;
|
||||
if (ym > yMost) yMost = ym;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -285,21 +285,13 @@ nsBlockBandData::ClearFloaters(nscoord aY, PRUint8 aBreakType)
|
|||
for (fn = 0; fn < numFrames; fn++) {
|
||||
nsIFrame* frame = (nsIFrame*) trapezoid->frames->ElementAt(fn);
|
||||
if (ShouldClearFrame(frame, aBreakType)) {
|
||||
#if 0
|
||||
nscoord ym = GetFrameYMost(frame);
|
||||
#else
|
||||
nscoord ym = trapezoid->yBottom;
|
||||
#endif
|
||||
nscoord ym = trapezoid->yBottom + mSpaceManagerY;
|
||||
if (ym > yMost) yMost = ym;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ShouldClearFrame(trapezoid->frame, aBreakType)) {
|
||||
#if 0
|
||||
nscoord ym = GetFrameYMost(trapezoid->frame);
|
||||
#else
|
||||
nscoord ym = trapezoid->yBottom;
|
||||
#endif
|
||||
nscoord ym = trapezoid->yBottom + mSpaceManagerY;
|
||||
if (ym > yMost) yMost = ym;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче