зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
31d52bc0c4
Коммит
39f4a65281
|
@ -6613,7 +6613,9 @@ nsTextFrame::PaintText(const PaintTextParams& aParams,
|
||||||
foregroundColor = gfxColor.ToABGR();
|
foregroundColor = gfxColor.ToABGR();
|
||||||
}
|
}
|
||||||
|
|
||||||
nscolor textStrokeColor = textPaintStyle.GetWebkitTextStrokeColor();
|
nscolor textStrokeColor = aParams.generateTextMask
|
||||||
|
? NS_RGBA(0, 0, 0, 255)
|
||||||
|
: textPaintStyle.GetWebkitTextStrokeColor();
|
||||||
if (aOpacity != 1.0f) {
|
if (aOpacity != 1.0f) {
|
||||||
gfx::Color gfxColor = gfx::Color::FromABGR(textStrokeColor);
|
gfx::Color gfxColor = gfx::Color::FromABGR(textStrokeColor);
|
||||||
gfxColor.a *= aOpacity;
|
gfxColor.a *= aOpacity;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче