[Webkit-unassigned] [Bug 171664] text-transform:uppercase in SVG causes misplaced letters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 19 20:59:05 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=171664

--- Comment #7 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Possible patch:

diff --git a/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp b/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
index 5aebea8abc3a9ede361f2edfc3e20d5ea1e9b611..a5af6fe694a4982ec697fed6339d32be624f474e 100644
--- a/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
@@ -78,7 +78,7 @@ String RenderSVGInlineText::originalText() const

 void RenderSVGInlineText::setRenderedText(const String& text)
 {
-    RenderText::setRenderedText(text);
+    RenderText::setRenderedText(applySVGWhitespaceRules(text, style().whiteSpace() == PRE));
     if (auto* textAncestor = RenderSVGText::locateRenderSVGTextAncestor(*this))
         textAncestor->subtreeTextDidChange(this);
 }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170620/337774b4/attachment.html>


More information about the webkit-unassigned mailing list