DescriptionFix assertion: !visualMetricsValues.isEmpty() in blink::SVGTextLayoutEngine::layoutTextOnLineOrPath
Having only whitespace within a <tspan> and setting white-space to
pre-wrap causes the !visualMetricsValues.isEmpty() assert, because
the created renderer's visualMetricsValues is empty. In fact, the
renderer shouldn't even be created in this case.
So, if the text only contains whitespace, and the white-space CSS
property is set to pre-wrap, and the text is from SVG node, then
don't create a renderer.
R=kinuko@chromium.org
BUG=416833
Patch Set 1 #
Created: 6 years, 2 months ago
Messages
Total messages: 15 (5 generated)
|