Bug 1261578 - Part 4. Correct text overflow color;
MozReview-Commit-ID: 2zbmsHxb6II
--- a/layout/generic/TextOverflow.cpp
+++ b/layout/generic/TextOverflow.cpp
@@ -209,18 +209,18 @@ PaintTextShadowCallback(nsRenderingConte
reinterpret_cast<nsDisplayTextOverflowMarker*>(aData)->
PaintTextToContext(aCtx, aShadowOffset);
}
void
nsDisplayTextOverflowMarker::Paint(nsDisplayListBuilder* aBuilder,
nsRenderingContext* aCtx)
{
- nscolor foregroundColor =
- nsLayoutUtils::GetColor(mFrame, eCSSProperty_color);
+ nsCSSProperty colorProp = mFrame->StyleContext()->GetTextFillColorProp();
+ nscolor foregroundColor = nsLayoutUtils::GetColor(mFrame, colorProp);
// Paint the text-shadows for the overflow marker
nsLayoutUtils::PaintTextShadow(mFrame, aCtx, mRect, mVisibleRect,
foregroundColor, PaintTextShadowCallback,
(void*)this);
aCtx->ThebesContext()->SetColor(gfx::Color::FromABGR(foregroundColor));
PaintTextToContext(aCtx, nsPoint(0, 0));
}