Bug 1304353 - part 2 - Initialize font's DrawOptions from the textrun's options when painting, so we don't drop any opacity that has already been set. r=bas

This commit is contained in:
Jonathan Kew 2016-09-23 13:38:06 +01:00
Родитель cbbe3d0e74
Коммит 7891206f28
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -2022,6 +2022,10 @@ gfxFont::Draw(const gfxTextRun *aTextRun, uint32_t aStart, uint32_t aEnd,
FontDrawParams fontParams;
if (aRunParams.drawOpts) {
fontParams.drawOptions = *aRunParams.drawOpts;
}
fontParams.scaledFont = GetScaledFont(aRunParams.dt);
if (!fontParams.scaledFont) {
return;