Commit 9f3a1769 authored by andersca's avatar andersca
Browse files

Reviewed by Ada.

        Make sure to call ResourceLoader::didReceiveData to ensure that there's a shared buffer with the resource
        data, since SubresourceLoaderClients now make use of that buffer.
        
        * loader/SubresourceLoader.cpp:
        (WebCore::SubresourceLoader::didReceiveData):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 00ee54b1
2007-03-14 Anders Carlsson <acarlsson@apple.com>
Reviewed by Ada.
Make sure to call ResourceLoader::didReceiveData to ensure that there's a shared buffer with the resource
data, since SubresourceLoaderClients now make use of that buffer.
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::didReceiveData):
2007-03-14 Administrator <acarlsson@apple.com>
 
Get the size from the shared buffer.
......
......@@ -168,13 +168,13 @@ void SubresourceLoader::didReceiveData(const char* data, int length, long long l
// Reference the object in this method since the additional processing can do
// anything including removing the last reference to this object; one example of this is 3266216.
RefPtr<SubresourceLoader> protect(this);
ResourceLoader::didReceiveData(data, length, lengthReceived, allAtOnce);
// A subresource loader does not load multipart sections progressively.
// So don't deliver any data to the loader yet.
if (!m_loadingMultipartContent && m_client)
m_client->didReceiveData(this, data, length);
ResourceLoader::didReceiveData(data, length, lengthReceived, allAtOnce);
}
void SubresourceLoader::didFinishLoading()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment