зеркало из https://github.com/mozilla/pjs.git
Uncomment a call to SetColor that is needed. b=181336 r+sr=bzbarsky
This commit is contained in:
Родитель
71a7773d75
Коммит
7d60004a4a
|
@ -2700,7 +2700,7 @@ nsTextFrame::RenderString(nsIRenderingContext& aRenderingContext,
|
||||||
pendingCount = bp - runStart;
|
pendingCount = bp - runStart;
|
||||||
if (0 != pendingCount) {
|
if (0 != pendingCount) {
|
||||||
// Measure previous run of characters using the previous font
|
// 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,
|
aRenderingContext.DrawString(runStart, pendingCount,
|
||||||
aX, aY + mAscent, -1,
|
aX, aY + mAscent, -1,
|
||||||
spacing ? sp0 : nsnull);
|
spacing ? sp0 : nsnull);
|
||||||
|
|
|
@ -2700,7 +2700,7 @@ nsTextFrame::RenderString(nsIRenderingContext& aRenderingContext,
|
||||||
pendingCount = bp - runStart;
|
pendingCount = bp - runStart;
|
||||||
if (0 != pendingCount) {
|
if (0 != pendingCount) {
|
||||||
// Measure previous run of characters using the previous font
|
// 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,
|
aRenderingContext.DrawString(runStart, pendingCount,
|
||||||
aX, aY + mAscent, -1,
|
aX, aY + mAscent, -1,
|
||||||
spacing ? sp0 : nsnull);
|
spacing ? sp0 : nsnull);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче