-
barraclough@apple.com authored
and from member methods of String. Reviewed by Oliver Hunt. Make 'numGraphemeClusters' & 'numCharactersInGraphemeClusters' global function defined in PlatformString.h, rather than member methods on String (these can be implemented purely using the characters() and length() public interface), and make 'makeCapitalized' a static function in RenderText.cpp. * dom/InputElement.cpp: (WebCore::InputElement::sanitizeUserInputValue): (WebCore::InputElement::handleBeforeTextInsertedEvent): * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::tooLong): * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::handleBeforeTextInsertedEvent): (WebCore::HTMLTextAreaElement::sanitizeUserInputValue): (WebCore::HTMLTextAreaElement::tooLong): * platform/text/PlatformString.h: (WebCore::String::makeSecure): * platform/text/String.cpp: (WebCore::numGraphemeClusters): (WebCore::numCharactersInGraphemeClusters): * platform/text/StringImpl.cpp: * platform/text/StringImpl.h: * rendering/RenderText.cpp: (WebCore::makeCapitalized): (WebCore::RenderText::setTextInternal): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c72059ea