Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Reuse floating point formatting of TextStream in [SVG]RenderTreeAsTex…
…t.cpp https://bugs.webkit.org/show_bug.cgi?id=96264 Reviewed by Benjamin Poulain. RenderTreeAsText uses the same format for streaming out floats as TextStream does. Replace formatNumberRespectingIntegers() with a new overload to the operator<< to reuse the special cases for numbers which take advantage of StringBuilder::appendNumber() and avoid a temporary StringImpl. * platform/text/TextStream.cpp: (WebCore::hasFractions): (WebCore::TextStream::operator<<): * platform/text/TextStream.h: * rendering/RenderTreeAsText.cpp: (WebCore::operator<<): * rendering/RenderTreeAsText.h: * rendering/svg/SVGRenderTreeAsText.cpp: (WebCore::operator<<): Canonical link: https://commits.webkit.org/114650@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
6 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters