Use ASCIILiteral over String for CSSValue::separatorCSSText() to avoid allocation
https://bugs.webkit.org/show_bug.cgi?id=223300
Patch by Tyler Wilcock <Tyler Wilcock> on 2021-03-17
Reviewed by Yusuke Suzuki.
Use ASCIILiteral over String for CSSValue::separatorCSSText() to avoid
allocation, since we know this function will always return an
ASCII string. Also rename separatorCssText to separatorCSSText.
These changes were requested in this comment:
https://bugs.webkit.org/show_bug.cgi?id=223205#c8
(WebCore::CSSValue::separatorCSSText const):
(WebCore::CSSValue::separatorCssText const):
Rename function separatorCssText to separatorCSSText.
String CSSValue::separatorCssText --> ASCIILiteral CSSValue::separatorCSSText
(WebCore::CSSValueList::customCSSText const):
Use auto to capture result of separatorCSSText().
(WebCore::CSSValuePair::customCSSText const):
Function separatorCssText was renamed to separatorCSSText.