Changeset 19335 in webkit


Ignore:
Timestamp:
Feb 1, 2007 12:23:31 AM (17 years ago)
Author:
mjs
Message:

Fix by Darin, reviewed by Maciej.

  • fix ~10% performance regression from encoding fix
  • loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForHeadCharset): Fix a logic error which made huge strings accidentally.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r19334 r19335  
     12007-02-01  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Fix by Darin, reviewed by Maciej.
     4
     5        - fix ~10% performance regression from encoding fix
     6
     7        * loader/TextResourceDecoder.cpp:
     8        (WebCore::TextResourceDecoder::checkForHeadCharset): Fix a logic
     9        error which made huge strings accidentally.
     10
    1112007-02-01  Lars Knoll <lars@trolltech.com>
    212
  • trunk/WebCore/loader/TextResourceDecoder.cpp

    r19324 r19335  
    579579           
    580580            if (!end && tag == metaTag) {
    581                 DeprecatedCString str(tagContentStart, tagContentStart - ptr);
     581                DeprecatedCString str(tagContentStart, ptr - tagContentStart);
    582582                str = str.lower();
    583583                int pos = 0;
Note: See TracChangeset for help on using the changeset viewer.