Bug 667576. Handle visited colors correctly in MathML. r=dbaron

This commit is contained in:
Boris Zbarsky
2011-10-29 03:04:20 -04:00
parent f62fd32979
commit 1521aa3285
7 changed files with 70 additions and 4 deletions

View File

@@ -516,7 +516,7 @@ void nsDisplayMathMLBar::Paint(nsDisplayListBuilder* aBuilder,
nsRenderingContext* aCtx)
{
// paint the bar with the current text color
aCtx->SetColor(mFrame->GetStyleColor()->mColor);
aCtx->SetColor(mFrame->GetVisitedDependentColor(eCSSProperty_color));
aCtx->FillRect(mRect + ToReferenceFrame());
}