Laying out a TextRun using an SVG font is O(n^2)
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Sep 2014 18:58:05 +0000 (18:58 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Sep 2014 18:58:05 +0000 (18:58 +0000)
commit7c77636062e3ba33ae1eb0b22d660853c4fbf670
tree6f4da076f42f4f1e1005c6d526de1abe2a7061cd
parentff16b746ff6abf90fdc20863fd0b41a807c716a6
Laying out a TextRun using an SVG font is O(n^2)
https://bugs.webkit.org/show_bug.cgi?id=136584

Reviewed by Darin Adler.

Addressing post-commit review from Darin.

No new tests.

* platform/graphics/Font.h:
(WebCore::Font::treatAsSpace): Un-inline.
(WebCore::Font::treatAsZeroWidthSpace): Ditto.
(WebCore::Font::treatAsZeroWidthSpaceInComplexScript): Ditto.
* svg/SVGFontData.cpp:
(WebCore::computeNormalizedSpaces): Avoid unnecessary copy.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/Font.h
Source/WebCore/svg/SVGFontData.cpp