Bug 1403259 - TextDrawTarget: fallback on -webrender-text-stroke. r=jrmuizel

MozReview-Commit-ID: 9taTLk0RLQq

--HG--
extra : rebase_source : 2c70334438ba9f59d030096656970362cbf0a7a2
This commit is contained in:
Alexis Beingessner 2017-09-26 14:12:12 -04:00
Родитель d30d68e5f8
Коммит cece98d71c
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -7262,6 +7262,10 @@ DrawTextRun(const gfxTextRun* aTextRun,
if ((NS_GET_A(aParams.textStrokeColor) != 0 || textDrawer) &&
aParams.textStrokeWidth != 0.0f) {
if (textDrawer) {
textDrawer->FoundUnsupportedFeature();
return;
}
StrokeOptions strokeOpts;
params.drawMode |= DrawMode::GLYPH_STROKE;
params.textStrokeColor = aParams.textStrokeColor;