mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 19:10:36 +00:00
Translate trapezoid into proper coordinate system
This commit is contained in:
parent
0c1b82b05a
commit
4bec7a8874
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user