Bug 1116952 - "Treelines fragments after bug 1105104". r=jwatt

This commit is contained in:
Karsten Düsterloh 2015-02-04 17:55:00 +01:00
parent d2b5500313
commit c9f9e67a8d

View File

@ -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;