Changeset 126303 in webkit


Ignore:
Timestamp:
Aug 22, 2012 8:28:37 AM (12 years ago)
Author:
rwlbuis@webkit.org
Message:

[BlackBerry] Add RSS content handling support
https://bugs.webkit.org/show_bug.cgi?id=93496

Reviewed by Yong Li.

Cleanup some more.

  • platform/network/blackberry/rss/RSSFilterStream.cpp:

(WebCore):
(WebCore::createParser):
(WebCore::defaultEncodingForLanguage):
(WebCore::isTranscodingNeeded):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r126302 r126303  
     12012-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
    1162012-08-21  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
    217
  • trunk/Source/WebCore/platform/network/blackberry/rss/RSSFilterStream.cpp

    r126230 r126303  
    5151static const char* const s_contentTypeHeaderKey = "Content-Type";
    5252
    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 
    6253static int isASCIISpaceLowerByte(int ch)
    6354{
     
    240231        return adoptPtr(new RSS20Parser());
    241232    default:
    242         // The following code is just for compiler, it should never reach here.
     233        ASSERT_NOT_REACHED();
    243234        return adoptPtr(new RSS20Parser());
    244235    }
     
    318309static const char* defaultEncodingForLanguage(const char* language)
    319310{
    320     if (!strcasecmp(language, "en")
    321         || !strcasecmp(language, "en-US"))
     311    if (!strcasecmp(language, "en") || !strcasecmp(language, "en-US"))
    322312        return s_latin1EncodingName;
    323313    if (!strcasecmp(language, "zh-cn"))
     
    331321    // When there's no encoding information, or the encoding can not be found in all encodings
    332322    // supported in our phone, we will try to transcode the content anyway, supposed to ASCII.
    333 
    334323    if (encoding.empty())
    335324        return true;
Note: See TracChangeset for help on using the changeset viewer.