Commit 02d22791 authored by abarth@webkit.org's avatar abarth@webkit.org

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

        Reviewed by Eric Seidel.

        Inline FrameLoader::committedLoad into its one caller
        https://bugs.webkit.org/show_bug.cgi?id=45481

        This saves one round-trip through the FrameLoader when loading
        documents.

        * loader/DocumentLoader.cpp:
        (WebCore::DocumentLoader::commitLoad):
        * loader/FrameLoader.cpp:
        * loader/FrameLoader.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent eec9b6cb
2010-09-10 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Inline FrameLoader::committedLoad into its one caller
https://bugs.webkit.org/show_bug.cgi?id=45481
This saves one round-trip through the FrameLoader when loading
documents.
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::commitLoad):
* loader/FrameLoader.cpp:
* loader/FrameLoader.h:
2010-09-10 Patrick Gansterer <paroga@paroga.com>
Reviewed by Adam Roben.
......@@ -39,6 +39,7 @@
#include "Event.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameLoaderClient.h"
#include "FrameTree.h"
#include "HistoryItem.h"
#include "Logging.h"
......@@ -277,8 +278,12 @@ void DocumentLoader::commitLoad(const char* data, int length)
RefPtr<DocumentLoader> protect(this);
commitIfReady();
if (FrameLoader* frameLoader = DocumentLoader::frameLoader())
frameLoader->committedLoad(this, data, length);
FrameLoader* frameLoader = DocumentLoader::frameLoader();
if (!frameLoader)
return;
if (ArchiveFactory::isArchiveMimeType(response().mimeType()))
return;
frameLoader->client()->committedLoad(this, data, length);
}
bool DocumentLoader::doesProgressiveLoad(const String& MIMEType) const
......
......@@ -2708,13 +2708,6 @@ void FrameLoader::addHTTPOriginIfNeeded(ResourceRequest& request, String origin)
request.setHTTPOrigin(origin);
}
void FrameLoader::committedLoad(DocumentLoader* loader, const char* data, int length)
{
if (ArchiveFactory::isArchiveMimeType(loader->response().mimeType()))
return;
m_client->committedLoad(loader, data, length);
}
void FrameLoader::loadPostRequest(const ResourceRequest& inRequest, const String& referrer, const String& frameName, bool lockHistory, FrameLoadType loadType, PassRefPtr<Event> event, PassRefPtr<FormState> prpFormState)
{
RefPtr<FormState> formState = prpFormState;
......
......@@ -179,7 +179,6 @@ public:
void didReceiveServerRedirectForProvisionalLoadForFrame();
void finishedLoadingDocument(DocumentLoader*);
void committedLoad(DocumentLoader*, const char*, int);
bool isReplacing() const;
void setReplacing();
void revertToProvisional(DocumentLoader*);
......
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