Commit bd3c1561 authored by abarth@webkit.org's avatar abarth@webkit.org

2010-09-10 Adam Barth <abarth@webkit.org>

        Reviewed by Darin Adler.

        Remove useless FrameLoader method
        https://bugs.webkit.org/show_bug.cgi?id=45492

        This method has one caller, and that caller already has a more direct
        way of accessing the correct DocumentLoader.

        * loader/FrameLoader.cpp:
        * loader/FrameLoader.h:
        * loader/MainResourceLoader.cpp:
        (WebCore::MainResourceLoader::addData):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9b003a98
2010-09-10 Adam Barth <abarth@webkit.org>
Reviewed by Darin Adler.
Remove useless FrameLoader method
https://bugs.webkit.org/show_bug.cgi?id=45492
This method has one caller, and that caller already has a more direct
way of accessing the correct DocumentLoader.
* loader/FrameLoader.cpp:
* loader/FrameLoader.h:
* loader/MainResourceLoader.cpp:
(WebCore::MainResourceLoader::addData):
2010-09-10 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
......@@ -1493,11 +1493,6 @@ const ResourceRequest& FrameLoader::initialRequest() const
return activeDocumentLoader()->originalRequest();
}
void FrameLoader::receivedData(const char* data, int length)
{
activeDocumentLoader()->receivedData(data, length);
}
bool FrameLoader::willLoadMediaElementURL(KURL& url)
{
ResourceRequest request(url);
......
......@@ -153,7 +153,6 @@ public:
const ResourceRequest& originalRequest() const;
const ResourceRequest& initialRequest() const;
void receivedMainResourceError(const ResourceError&, bool isComplete);
void receivedData(const char*, int);
bool willLoadMediaElementURL(KURL&);
......
......@@ -146,7 +146,7 @@ bool MainResourceLoader::isPostOrRedirectAfterPost(const ResourceRequest& newReq
void MainResourceLoader::addData(const char* data, int length, bool allAtOnce)
{
ResourceLoader::addData(data, length, allAtOnce);
frameLoader()->receivedData(data, length);
documentLoader()->receivedData(data, length);
}
void MainResourceLoader::willSendRequest(ResourceRequest& newRequest, const ResourceResponse& redirectResponse)
......
Markdown is supported
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