Reviewed by Darin Adler.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2008 00:12:55 +0000 (00:12 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jan 2008 00:12:55 +0000 (00:12 +0000)
commitcd1474f4d156778e8272c71145fa0a04bab1eae5
treea6410c7af2844a1ebacd8d06350544208122b388
parentfe6947bcc1b1556a5ee7d4a44bf44991814c1e2f
    Reviewed by Darin Adler.

        Fix ASSERTION FAILED: dstOffset + srcSegmentLength == static_cast<int>(data.size())
        when the replacment string is a different length.

        * platform/text/StringImpl.cpp:
        (WebCore::StringImpl::replace): Move the parenthesis to be around only the subtraction in
        the Vector size calculation, correcting the order of math operations.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/text/StringImpl.cpp