-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=57746 Patch by Shinya Kawanaka <shinyak@google.com> on 2011-07-27 Reviewed by Kent Tamura. * wtf/text/StringImpl.cpp: (WTF::StringImpl::stripWhiteSpace): Added an interface to take IsWhiteSpaceFunctionPtr. (WTF::StringImpl::simplifyWhiteSpace): ditto. * wtf/text/StringImpl.h: * wtf/text/WTFString.cpp: (WTF::String::stripWhiteSpace): ditto. (WTF::String::simplifyWhiteSpace): ditto. * wtf/text/WTFString.h: Source/WebCore: Uses isHTMLSpace to normalize white spaces. https://bugs.webkit.org/show_bug.cgi?id=57746 Patch by Shinya Kawanaka <shinyak@google.com> on 2011-07-27 Reviewed by Kent Tamura. Test: fast/forms/option-strip-unicode-spaces.html * dom/OptionElement.cpp: (WebCore::OptionElement::normalizeText): Uses isHTMLSpace to trim and replace white spaces. LayoutTests: Added a test to normalize option.text. https://bugs.webkit.org/show_bug.cgi?id=57746 Patch by Shinya Kawanaka <shinyak@google.com> on 2011-07-27 Reviewed by Kent Tamura. * fast/forms/option-strip-unicode-spaces-expected.txt: Added. * fast/forms/option-strip-unicode-spaces.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
d23798d3