Ignore:
Timestamp:
Jul 27, 2011, 6:07:42 AM (14 years ago)
Author:
[email protected]
Message:

Source/JavaScriptCore: Added an interface to take IsWhiteSpaceFunctionPtr.
https://bugs.webkit.org/show_bug.cgi?id=57746

Patch by Shinya Kawanaka <[email protected]> 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 <[email protected]> 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 <[email protected]> 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/JavaScriptCore.exp

    r91790 r91837  
    585585__ZNK3WTF6String14threadsafeCopyEv
    586586__ZNK3WTF6String15stripWhiteSpaceEv
     587__ZNK3WTF6String15stripWhiteSpaceEPFbtE
    587588__ZNK3WTF6String16removeCharactersEPFbtE
    588589__ZNK3WTF6String17crossThreadStringEv
    589590__ZNK3WTF6String18simplifyWhiteSpaceEv
     591__ZNK3WTF6String18simplifyWhiteSpaceEPFbtE
    590592__ZNK3WTF6String19characterStartingAtEj
    591593__ZNK3WTF6String4utf8Eb
Note: See TracChangeset for help on using the changeset viewer.