Title: [126303] trunk/Source/WebCore
Revision
126303
Author
[email protected]
Date
2012-08-22 08:28:37 -0700 (Wed, 22 Aug 2012)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (126302 => 126303)


--- trunk/Source/WebCore/ChangeLog	2012-08-22 14:51:56 UTC (rev 126302)
+++ trunk/Source/WebCore/ChangeLog	2012-08-22 15:28:37 UTC (rev 126303)
@@ -1,3 +1,18 @@
+2012-08-22  Rob Buis  <[email protected]>
+
+        [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):
+
 2012-08-21  Caio Marcelo de Oliveira Filho  <[email protected]>
 
         Remove unused TextDrawingMode flags from GraphicsContext

Modified: trunk/Source/WebCore/platform/network/blackberry/rss/RSSFilterStream.cpp (126302 => 126303)


--- trunk/Source/WebCore/platform/network/blackberry/rss/RSSFilterStream.cpp	2012-08-22 14:51:56 UTC (rev 126302)
+++ trunk/Source/WebCore/platform/network/blackberry/rss/RSSFilterStream.cpp	2012-08-22 15:28:37 UTC (rev 126303)
@@ -50,15 +50,6 @@
 static const char* const s_contentLengthHeaderKey = "Content-Length";
 static const char* const s_contentTypeHeaderKey = "Content-Type";
 
-static const char* const s_atom10VersionKey = "xmlns";
-static const char* const s_atom10VersionValue = "http://www.w3.org/2005/Atom";
-static const char* const s_rss10VersionKey = "xmlns";
-static const char* const s_rss10VersionValue = "http://purl.org/rss/1.0/";
-static const char* const s_rss20VersionKey = "version";
-static const char* const s_rss20VersionValue = "2.0";
-static const char* const s_rssXmlVersionKey = "version";
-static const char* const s_rssXmlVersionValue = "1.0";
-
 static int isASCIISpaceLowerByte(int ch)
 {
     return isASCIISpace<int>(ch & 0xff);
@@ -239,7 +230,7 @@
     case RSSFilterStream::TypeRSS20:
         return adoptPtr(new RSS20Parser());
     default:
-        // The following code is just for compiler, it should never reach here.
+        ASSERT_NOT_REACHED();
         return adoptPtr(new RSS20Parser());
     }
 }
@@ -317,8 +308,7 @@
 
 static const char* defaultEncodingForLanguage(const char* language)
 {
-    if (!strcasecmp(language, "en")
-        || !strcasecmp(language, "en-US"))
+    if (!strcasecmp(language, "en") || !strcasecmp(language, "en-US"))
         return s_latin1EncodingName;
     if (!strcasecmp(language, "zh-cn"))
         return s_gbkEncodingName;
@@ -330,7 +320,6 @@
 {
     // When there's no encoding information, or the encoding can not be found in all encodings
     // supported in our phone, we will try to transcode the content anyway, supposed to ASCII.
-
     if (encoding.empty())
         return true;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to