Build fix for SubresourceLoader when building with Core Foundation
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Dec 2011 23:55:21 +0000 (23:55 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Dec 2011 23:55:21 +0000 (23:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=73709

Patch by Benjamin Poulain <bpoulain@apple.com> on 2011-12-02
Reviewed by David Kilzer.

The patch r100311 removed SubresourceClient and merged it in SubresourceLoader.
Consequently, m_client does not exist anymore and there is no need to do the check
before invoking didReceiveData().

* loader/cf/SubresourceLoaderCF.cpp:
(WebCore::SubresourceLoader::didReceiveDataArray):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101874 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/loader/cf/SubresourceLoaderCF.cpp

index 461412eb60db390eb2bff43298f71ce9fb18c4d2..73002f4d85812ee4721521558dbd178679e71439 100644 (file)
@@ -1,3 +1,17 @@
+2011-12-02  Benjamin Poulain  <bpoulain@apple.com>
+
+        Build fix for SubresourceLoader when building with Core Foundation
+        https://bugs.webkit.org/show_bug.cgi?id=73709
+
+        Reviewed by David Kilzer.
+
+        The patch r100311 removed SubresourceClient and merged it in SubresourceLoader.
+        Consequently, m_client does not exist anymore and there is no need to do the check
+        before invoking didReceiveData().
+
+        * loader/cf/SubresourceLoaderCF.cpp:
+        (WebCore::SubresourceLoader::didReceiveDataArray):
+
 2011-12-02  Andreas Kling  <kling@webkit.org>
 
         StyledElement: Simplify addCSSColor().
index 562d12cb5af4467ffc052abea9d4acb87fadcca2..15ab887f860e060c4f5f70537e04b433dbb04a17 100644 (file)
@@ -41,8 +41,6 @@ void SubresourceLoader::didReceiveDataArray(CFArrayRef dataArray)
     if (!m_loadingMultipartContent) {
         CFIndex arrayCount = CFArrayGetCount(dataArray);
         for (CFIndex i = 0; i < arrayCount; ++i)  {
-            if (!m_client)
-                break;
             CFDataRef data = reinterpret_cast<CFDataRef>(CFArrayGetValueAtIndex(dataArray, i));
             didReceiveData(reinterpret_cast<const char *>(CFDataGetBytePtr(data)), static_cast<int>(CFDataGetLength(data)), -1, false);
         }