Minor optimization to RenderText::setRenderedText()
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Jan 2019 00:07:35 +0000 (00:07 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Jan 2019 00:07:35 +0000 (00:07 +0000)
commitd7bec9dd3ab7c74e88051f064a7d9a66908f67fd
tree996438c2cba11e67c20b1f81d26c7906761d356b
parentda3020521bbb8e15f140e29efb56f9f4f7ba9cd5
Minor optimization to RenderText::setRenderedText()
https://bugs.webkit.org/show_bug.cgi?id=193388

Reviewed by Ryosuke Niwa.

Avoid the call to applyTextTransform() if TextTransform is None, so that we don't
have to call previousCharacter() and reassign m_text.

Similar optimization in RenderText::textWithoutConvertingBackslashToYenSymbol().

Speedometer profiles show a few samples here, but this isn't going to win any prizes.

* rendering/RenderText.cpp:
(WebCore::RenderText::setRenderedText):
(WebCore::RenderText::textWithoutConvertingBackslashToYenSymbol const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderText.cpp