Bug 1086610 - Get color working for ::-moz-tree-progressmeter again. r=mattwoodrow

This commit is contained in:
Jonathan Watt 2014-10-22 12:29:06 +01:00
parent 43b0709b04
commit e6864f37dd

View File

@ -3794,8 +3794,7 @@ nsTreeBodyFrame::PaintProgressMeter(int32_t aRowIndex,
int32_t appUnitsPerDevPixel = PresContext()->AppUnitsPerDevPixel();
Rect rect =
NSRectToSnappedRect(meterRect, appUnitsPerDevPixel, *drawTarget);
ColorPattern color(ToDeviceColor(
GetVisitedDependentColor(eCSSProperty_color)));
ColorPattern color(ToDeviceColor(meterContext->StyleColor()->mColor));
drawTarget->FillRect(rect, color);
}
}