Skip to content
  • weinig@apple.com's avatar
    JavaScriptCore: · f8479433
    weinig@apple.com authored
            Reviewed by Dan Bernstein.
    
            - Add a variant of remove that takes a position and a length.
    
            * wtf/Vector.h:
            (WTF::Vector::remove):
    
    WebCore:
    
            Reviewed by Dan Bernstein.
    
            Make the cleanPath function in CSSStyleSelector more efficient by using
            a Vector<UChar>.
    
            * css/CSSStyleSelector.cpp:
            (WebCore::cleanPath): Make this function work on a Vector<UChar> instead
            of a String.  Also remove unnecessary reverseFind call that could be acomplished
            with two compares.
            (WebCore::checkPseudoState): Remove reserveCapacity calls now that we are using
            a stack buffer.
            * platform/text/PlatformString.h:
            (WebCore::find): Make this find generic enough that it can be used for
            String::find.
            (WebCore::reverseFind): Implement reverseFind so that it can be used
            for with a UChar* and length.
            * platform/text/StringImpl.cpp:
            (WebCore::StringImpl::find): Use implementation in PlatformString.cpp
            (WebCore::StringImpl::reverseFind): Ditto,
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f8479433