DescriptionDon't create layout objects for pre-wrap text nodes in SVG
SVGTextMetricsBuilder only knows how to handle 'white-space: pre' with
regards to whitespace preservation, meaning it will collapse the spaces
in the node, and hence not generate any SVGTextMetrics for it.
Filter this case out to avoid even creating the text layout object in
the first place.
Fix salvaged from https://codereview.chromium.org/755613002/, with prior
work by Peter Molnar (pmolnar.u-szeged@partner.samsung.com) and
Zoltan Herczeg (zherczeg.u-szeged@partner.samsung.com). Test simplified
and extended to cover all white-space values.
BUG=416833, 495969
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196558
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|