summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-12-04 11:08:35 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-12-04 11:08:35 -0800
commit2a2524d2c288155a0e88d67257f6428b79efda7f (patch)
treee251eb9ea280eae090e26eda43dd9747859a234d /WebCore
parent9401c651f24855ce1db6a286789c55f796221e35 (diff)
parentf686b999eec21154e6559605a28d87ec35f2a5df (diff)
downloadexternal_webkit-2a2524d2c288155a0e88d67257f6428b79efda7f.zip
external_webkit-2a2524d2c288155a0e88d67257f6428b79efda7f.tar.gz
external_webkit-2a2524d2c288155a0e88d67257f6428b79efda7f.tar.bz2
Merge change If686b999 into eclair-mr2
* changes: Pass up flags for the main resource and user gesture.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/network/android/ResourceHandleAndroid.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/WebCore/platform/network/android/ResourceHandleAndroid.cpp b/WebCore/platform/network/android/ResourceHandleAndroid.cpp
index 15b369a..639582c 100644
--- a/WebCore/platform/network/android/ResourceHandleAndroid.cpp
+++ b/WebCore/platform/network/android/ResourceHandleAndroid.cpp
@@ -29,6 +29,7 @@
#include "ResourceHandle.h"
#include "DocLoader.h"
+#include "DocumentLoader.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "FrameLoaderClientAndroid.h"
@@ -54,9 +55,12 @@ ResourceHandle::~ResourceHandle()
bool ResourceHandle::start(Frame* frame)
{
+ DocumentLoader* adl = frame->loader()->activeDocumentLoader();
+ bool isMainResource =
+ ((void*) client()) == ((void*) adl->mainResourceLoader());
WebCoreResourceLoader* loader;
FrameLoaderClientAndroid* client = static_cast<FrameLoaderClientAndroid*> (frame->loader()->client());
- loader = client->webFrame()->startLoadingResource(this, d->m_request, false);
+ loader = client->webFrame()->startLoadingResource(this, d->m_request, isMainResource, false);
if (loader) {
Release(d->m_loader);
@@ -147,7 +151,7 @@ void ResourceHandle::loadResourceSynchronously(const ResourceRequest& request,
ResourceHandle h(request, &s, false, false, false);
// This blocks until the load is finished.
FrameLoaderClientAndroid* client = static_cast<FrameLoaderClientAndroid*> (frame->loader()->client());
- client->webFrame()->startLoadingResource(&h, request, true);
+ client->webFrame()->startLoadingResource(&h, request, false, true);
}
} // namespace WebCore