Bug 1269971 - Part 4. Add text stroke into text mask; r=jfkthame

MozReview-Commit-ID: IkaLMEX5q0T

--HG--
extra : rebase_source : 14ef2f4e033121873cbb51e437c3e7690c963fdb
This commit is contained in:
CJKu 2016-05-13 00:09:05 +08:00
Родитель 31d52bc0c4
Коммит 39f4a65281
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -6613,7 +6613,9 @@ nsTextFrame::PaintText(const PaintTextParams& aParams,
foregroundColor = gfxColor.ToABGR();
}
nscolor textStrokeColor = textPaintStyle.GetWebkitTextStrokeColor();
nscolor textStrokeColor = aParams.generateTextMask
? NS_RGBA(0, 0, 0, 255)
: textPaintStyle.GetWebkitTextStrokeColor();
if (aOpacity != 1.0f) {
gfx::Color gfxColor = gfx::Color::FromABGR(textStrokeColor);
gfxColor.a *= aOpacity;