From cece98d71c762bfded1aaa9dcb11c67f50f89637 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Tue, 26 Sep 2017 14:12:12 -0400 Subject: [PATCH] Bug 1403259 - TextDrawTarget: fallback on -webrender-text-stroke. r=jrmuizel MozReview-Commit-ID: 9taTLk0RLQq --HG-- extra : rebase_source : 2c70334438ba9f59d030096656970362cbf0a7a2 --- layout/generic/nsTextFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index fffcd017daff..71cd7aab769f 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -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;