Uncomment a call to SetColor that is needed. b=181336 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152232 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2700,7 +2700,7 @@ nsTextFrame::RenderString(nsIRenderingContext& aRenderingContext,
|
||||
pendingCount = bp - runStart;
|
||||
if (0 != pendingCount) {
|
||||
// Measure previous run of characters using the previous font
|
||||
//aRenderingContext.SetColor(aTextStyle.mColor->mColor); commenting out redundat(and destructive) call to setcolor
|
||||
aRenderingContext.SetColor(aTextStyle.mColor->mColor);
|
||||
aRenderingContext.DrawString(runStart, pendingCount,
|
||||
aX, aY + mAscent, -1,
|
||||
spacing ? sp0 : nsnull);
|
||||
|
||||
@@ -2700,7 +2700,7 @@ nsTextFrame::RenderString(nsIRenderingContext& aRenderingContext,
|
||||
pendingCount = bp - runStart;
|
||||
if (0 != pendingCount) {
|
||||
// Measure previous run of characters using the previous font
|
||||
//aRenderingContext.SetColor(aTextStyle.mColor->mColor); commenting out redundat(and destructive) call to setcolor
|
||||
aRenderingContext.SetColor(aTextStyle.mColor->mColor);
|
||||
aRenderingContext.DrawString(runStart, pendingCount,
|
||||
aX, aY + mAscent, -1,
|
||||
spacing ? sp0 : nsnull);
|
||||
|
||||
Reference in New Issue
Block a user