Bug 1261578 - Part 4. Correct text overflow color; draft
authorCJKu <cku@mozilla.com>
Tue, 19 Apr 2016 17:10:17 +0800
changeset 353645 0b8e17c7f2f595263f6f205436fe384a49395c4b
parent 353644 65f89dbef38cd93c82ab31adf6618204ff49fa2a
child 353646 015ff855f080c346dec8b32ddacfd4bc1f5d1a2d
push id15889
push usercku@mozilla.com
push dateTue, 19 Apr 2016 09:15:12 +0000
bugs1261578
milestone48.0a1
Bug 1261578 - Part 4. Correct text overflow color; MozReview-Commit-ID: 2zbmsHxb6II
layout/generic/TextOverflow.cpp
--- 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));
 }