mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116952 - "Treelines fragments after bug 1105104". r=jwatt
This commit is contained in:
parent
d2b5500313
commit
c9f9e67a8d
@ -3240,18 +3240,20 @@ nsTreeBodyFrame::PaintCell(int32_t aRowIndex,
|
||||
// Paint full vertical line only if we have next sibling.
|
||||
bool hasNextSibling;
|
||||
mView->HasNextSibling(currentParent, aRowIndex, &hasNextSibling);
|
||||
Point p1(pc->AppUnitsToGfxUnits(srcX),
|
||||
pc->AppUnitsToGfxUnits(lineY));
|
||||
Point p2;
|
||||
p2.x = pc->AppUnitsToGfxUnits(srcX);
|
||||
if (hasNextSibling || i == level) {
|
||||
Point p1(pc->AppUnitsToGfxUnits(srcX),
|
||||
pc->AppUnitsToGfxUnits(lineY));
|
||||
Point p2;
|
||||
p2.x = pc->AppUnitsToGfxUnits(srcX);
|
||||
|
||||
if (hasNextSibling)
|
||||
p2.y = pc->AppUnitsToGfxUnits(lineY + mRowHeight);
|
||||
else if (i == level)
|
||||
p2.y = pc->AppUnitsToGfxUnits(lineY + mRowHeight / 2);
|
||||
if (hasNextSibling)
|
||||
p2.y = pc->AppUnitsToGfxUnits(lineY + mRowHeight);
|
||||
else if (i == level)
|
||||
p2.y = pc->AppUnitsToGfxUnits(lineY + mRowHeight / 2);
|
||||
|
||||
SnapLineToDevicePixelsForStroking(p1, p2, *drawTarget);
|
||||
drawTarget->StrokeLine(p1, p2, colorPatt, strokeOptions);
|
||||
SnapLineToDevicePixelsForStroking(p1, p2, *drawTarget);
|
||||
drawTarget->StrokeLine(p1, p2, colorPatt, strokeOptions);
|
||||
}
|
||||
}
|
||||
|
||||
int32_t parent;
|
||||
|
Loading…
Reference in New Issue
Block a user