Changeset 13863 in webkit
- Timestamp:
- Apr 13, 2006 10:03:16 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r13855 r13863 1 2006-04-13 Alexey Proskuryakov <ap@nypop.com> 2 3 Test created by Maciej. 4 5 Tests that Latin-1 is handled as windows-1252 6 (see http://bugzilla.opendarwin.org/show_bug.cgi?id=7602). Some existing tests 7 already did cover this, but only indirectly. 8 9 * fast/encoding/latin1-winlatin-expected.txt: Added. 10 * fast/encoding/latin1-winlatin.html: Added. 11 1 12 2006-04-12 Justin Garcia <justin.garcia@apple.com> 2 13 … … 200 211 * editing/deleting/merge-unrendered-space-expected.txt: Added. 201 212 * editing/deleting/merge-unrendered-space.html: Added. 213 214 2006-04-10 Alexey Proskuryakov <ap@nypop.com> 215 216 Reviewed by Darin. 217 218 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8157 219 Make HTTP tests using Perl use .pl extension 220 221 * http/tests/incremental/slow-utf8-text.pl: Added (renamed from .text). 222 * http/tests/incremental/slow-utf8-text.text: Removed. 223 * http/tests/incremental/split-hex-entities.pl: Added (renamed from .html). 224 * http/tests/incremental/split-hex-entities.html: Removed. 225 * http/tests/incremental/.htaccess: Removed. 202 226 203 227 2006-04-10 Darin Adler <darin@apple.com> -
trunk/WebCore/ChangeLog
r13862 r13863 1 2006-04-13 Alexey Proskuryakov <ap@nypop.com> 2 3 Reviewed by Darin. 4 5 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7602 6 Only use fixupChar for entities 7 8 * html/HTMLTokenizer.cpp: Only use fixUpChar() when handling entities. 9 (WebCore::HTMLTokenizer::parseSpecial): 10 (WebCore::HTMLTokenizer::parseText): 11 (WebCore::HTMLTokenizer::parseTag): 12 (WebCore::HTMLTokenizer::write): 13 * platform/StreamingTextDecoder.cpp: 14 (WebCore::StreamingTextDecoder::convert): Remove the special case for Latin-1, because it is already handled 15 via effectiveEncoding(). 16 * platform/StreamingTextDecoder.h: Remove convertLatin1(). 17 1 18 2006-04-13 Darin Adler <darin@apple.com> 2 19 -
trunk/WebCore/html/HTMLTokenizer.cpp
r13859 r13863 9 9 (C) 2001 Dirk Mueller (mueller@kde.org) 10 10 Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 11 Copyright (C) 2005, 2006 Alexey Proskuryakov (ap@nypop.com) 11 12 12 13 This library is free software; you can redistribute it and/or … … 82 83 // There may be better equivalents 83 84 84 // We need this for entities at least. For non-entity text, we could 85 // handle this in the text encoding. 86 87 // To cover non-entity text, I think this function would need to be called 88 // in more places. There seem to be some places that don't call fixUpChar. 85 // We only need this for entities. For non-entity text, we handle this in the text encoding. 89 86 90 87 static const unsigned short windowsLatin1ExtensionArray[32] = { … … 329 326 } 330 327 else { 331 scriptCode[scriptCodeSize++] = fixUpChar(*src);328 scriptCode[scriptCodeSize++] = *src; 332 329 ++src; 333 330 } … … 639 636 *dest++ = '\n'; 640 637 } else 641 *dest++ = fixUpChar(cc);638 *dest++ = cc; 642 639 ++src; 643 640 } … … 1063 1060 } 1064 1061 } 1065 *dest++ = fixUpChar(*src);1062 *dest++ = *src; 1066 1063 ++src; 1067 1064 } … … 1094 1091 } 1095 1092 1096 *dest++ = fixUpChar(*src);1093 *dest++ = *src; 1097 1094 ++src; 1098 1095 } … … 1456 1453 } else { 1457 1454 state.setDiscardLF(false); 1458 *dest++ = fixUpChar(*src);1455 *dest++ = *src; 1459 1456 ++src; 1460 1457 } -
trunk/WebCore/platform/StreamingTextDecoder.cpp
r13821 r13863 43 43 } 44 44 45 DeprecatedString StreamingTextDecoder::convertLatin1(const unsigned char* s, int length)46 {47 ASSERT(m_numBufferedBytes == 0);48 return DeprecatedString(reinterpret_cast<const char *>(s), length);49 }50 51 45 static const UChar replacementCharacter = 0xFFFD; 52 46 static const UChar BOM = 0xFEFF; … … 231 225 232 226 switch (m_encoding.encodingID()) { 233 case Latin1Encoding:234 case WinLatin1Encoding:235 return convertLatin1(chs, len);236 237 227 case UTF16Encoding: 238 228 return convertUTF16(chs, len); -
trunk/WebCore/platform/StreamingTextDecoder.h
r13393 r13863 45 45 { return convert(reinterpret_cast<const unsigned char*>(chs), len, flush); } 46 46 DeprecatedString convert(const unsigned char* chs, int len, bool flush); 47 DeprecatedString convertLatin1(const unsigned char* chs, int len);48 47 DeprecatedString convertUTF16(const unsigned char* chs, int len); 49 48
Note: See TracChangeset
for help on using the changeset viewer.