Changeset 126303 in webkit
- Timestamp:
- Aug 22, 2012 8:28:37 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126302 r126303 1 2012-08-22 Rob Buis <rbuis@rim.com> 2 3 [BlackBerry] Add RSS content handling support 4 https://bugs.webkit.org/show_bug.cgi?id=93496 5 6 Reviewed by Yong Li. 7 8 Cleanup some more. 9 10 * platform/network/blackberry/rss/RSSFilterStream.cpp: 11 (WebCore): 12 (WebCore::createParser): 13 (WebCore::defaultEncodingForLanguage): 14 (WebCore::isTranscodingNeeded): 15 1 16 2012-08-21 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> 2 17 -
trunk/Source/WebCore/platform/network/blackberry/rss/RSSFilterStream.cpp
r126230 r126303 51 51 static const char* const s_contentTypeHeaderKey = "Content-Type"; 52 52 53 static const char* const s_atom10VersionKey = "xmlns";54 static const char* const s_atom10VersionValue = "http://www.w3.org/2005/Atom";55 static const char* const s_rss10VersionKey = "xmlns";56 static const char* const s_rss10VersionValue = "http://purl.org/rss/1.0/";57 static const char* const s_rss20VersionKey = "version";58 static const char* const s_rss20VersionValue = "2.0";59 static const char* const s_rssXmlVersionKey = "version";60 static const char* const s_rssXmlVersionValue = "1.0";61 62 53 static int isASCIISpaceLowerByte(int ch) 63 54 { … … 240 231 return adoptPtr(new RSS20Parser()); 241 232 default: 242 // The following code is just for compiler, it should never reach here.233 ASSERT_NOT_REACHED(); 243 234 return adoptPtr(new RSS20Parser()); 244 235 } … … 318 309 static const char* defaultEncodingForLanguage(const char* language) 319 310 { 320 if (!strcasecmp(language, "en") 321 || !strcasecmp(language, "en-US")) 311 if (!strcasecmp(language, "en") || !strcasecmp(language, "en-US")) 322 312 return s_latin1EncodingName; 323 313 if (!strcasecmp(language, "zh-cn")) … … 331 321 // When there's no encoding information, or the encoding can not be found in all encodings 332 322 // supported in our phone, we will try to transcode the content anyway, supposed to ASCII. 333 334 323 if (encoding.empty()) 335 324 return true;
Note: See TracChangeset
for help on using the changeset viewer.