| Index: Source/WebCore/svg/SVGFontData.cpp
|
| ===================================================================
|
| --- Source/WebCore/svg/SVGFontData.cpp (revision 139386)
|
| +++ Source/WebCore/svg/SVGFontData.cpp (working copy)
|
| @@ -189,6 +189,16 @@
|
| size_t glyphsSize = glyphs.size();
|
| for (size_t i = 0; i < glyphsSize; ++i)
|
| glyphs[i].unicodeStringLength = run.length();
|
| +
|
| + // Do not check alt glyphs for compatibility. Just return the first one.
|
| + // Later code will fail if we do not do this and the glyph is incompatible.
|
| + if (glyphsSize) {
|
| + SVGGlyph& svgGlyph = glyphs[0];
|
| + iterator.setLastGlyphName(svgGlyph.glyphName);
|
| + glyphData.glyph = svgGlyph.tableEntry;
|
| + advanceLength = svgGlyph.unicodeStringLength;
|
| + return true;
|
| + }
|
| } else
|
| associatedFontElement->collectGlyphsForString(remainingTextInRun, glyphs);
|
|
|
|
|