RefPtr<CustomFontData> customFontData = fontData->customFontData();
const SVGFontData* svgFontData = static_cast<const SVGFontData*>(customFontData.get());
+ // FIXME crbug.com/359380 : The current editing impl references the font after the svg font nodes are removed.
+ if (svgFontData->shouldSkipDrawing())
+ return 0;
+
fontFace = svgFontData->svgFontFaceElement();
ASSERT(fontFace);
glyphOrigin.setX(svgFontData->horizontalOriginX() * scale);
glyphOrigin.setY(svgFontData->horizontalOriginY() * scale);
+ unsigned short resourceMode = context->textDrawingMode() == TextModeStroke ? ApplyToStrokeMode : ApplyToFillMode;
+ // From a resource perspective this ought to be treated as "text mode".
+ resourceMode |= ApplyToTextMode;
+
FloatPoint currentPoint = point;
- RenderSVGResourceMode resourceMode = context->textDrawingMode() == TextModeStroke ? ApplyToStrokeMode : ApplyToFillMode;
for (int i = 0; i < numGlyphs; ++i) {
Glyph glyph = glyphBuffer.glyphAt(from + i);
if (!glyph)