зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cbbe3d0e74
Коммит
7891206f28
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче