summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-06-03 14:56:51 +0100
committerSteve Block <steveblock@google.com>2011-06-08 15:24:37 +0100
commit2f4ef9300ef5b74c660927a63057e2fcff0e1905 (patch)
tree0b710a92b3094ead24d72a4113194b243f094769 /Source
parent5d332600324dd9cf9a71dd5cf45b849859890818 (diff)
downloadexternal_webkit-2f4ef9300ef5b74c660927a63057e2fcff0e1905.zip
external_webkit-2f4ef9300ef5b74c660927a63057e2fcff0e1905.tar.gz
external_webkit-2f4ef9300ef5b74c660927a63057e2fcff0e1905.tar.bz2
Merge WebKit at r82507: IcondDatabaseBase::iconForPageURL() renamed
See http://trac.webkit.org/changeset/81484 Change-Id: I72f818d5d0075c63b658c2d8457d2182a7968c05
Diffstat (limited to 'Source')
-rw-r--r--Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp10
-rw-r--r--Source/WebKit/android/jni/WebCoreFrameBridge.cpp4
-rw-r--r--Source/WebKit/android/jni/WebHistory.cpp5
-rw-r--r--Source/WebKit/android/jni/WebIconDatabase.cpp5
4 files changed, 15 insertions, 9 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
index b6cbefc..8d75dfc 100644
--- a/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
+++ b/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
@@ -251,14 +251,16 @@ void FrameLoaderClientAndroid::dispatchDidReceiveIcon() {
return;
WTF::String url(m_frame->document()->url().string());
// Try to obtain the icon image.
- WebCore::Image* icon = WebCore::iconDatabase().iconForPageURL(
- url, WebCore::IntSize(16, 16));
+ // FIXME: This method should not be used from outside WebCore and will be removed.
+ // http://trac.webkit.org/changeset/81484
+ WebCore::Image* icon = WebCore::iconDatabase().synchronousIconForPageURL(url, WebCore::IntSize(16, 16));
// If the request fails, try the original request url.
if (!icon) {
DocumentLoader* docLoader = m_frame->loader()->activeDocumentLoader();
KURL originalURL = docLoader->originalRequest().url();
- icon = WebCore::iconDatabase().iconForPageURL(
- originalURL, WebCore::IntSize(16, 16));
+ // FIXME: This method should not be used from outside WebCore and will be removed.
+ // http://trac.webkit.org/changeset/81484
+ icon = WebCore::iconDatabase().synchronousIconForPageURL(originalURL, WebCore::IntSize(16, 16));
}
// There is a bug in webkit where cancelling an icon load is treated as a
// failure. When this is fixed, we can ASSERT again that we have an icon.
diff --git a/Source/WebKit/android/jni/WebCoreFrameBridge.cpp b/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
index 29cd17d..be38a16 100644
--- a/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -576,7 +576,9 @@ WebFrame::loadStarted(WebCore::Frame* frame)
// send it along with the page started notification.
jobject favicon = NULL;
if (isMainFrame) {
- WebCore::Image* icon = WebCore::iconDatabase().iconForPageURL(urlString, WebCore::IntSize(16, 16));
+ // FIXME: This method should not be used from outside WebCore and will be removed.
+ // http://trac.webkit.org/changeset/81484
+ WebCore::Image* icon = WebCore::iconDatabase().synchronousIconForPageURL(urlString, WebCore::IntSize(16, 16));
if (icon)
favicon = webcoreImageToJavaBitmap(env, icon);
LOGV("favicons", "Starting load with icon %p for %s", icon, url.string().utf8().data());
diff --git a/Source/WebKit/android/jni/WebHistory.cpp b/Source/WebKit/android/jni/WebHistory.cpp
index dd68a4e..c0a0906 100644
--- a/Source/WebKit/android/jni/WebHistory.cpp
+++ b/Source/WebKit/android/jni/WebHistory.cpp
@@ -291,8 +291,9 @@ void WebHistoryItem::updateHistoryItem(WebCore::HistoryItem* item) {
int refIndex = url.reverseFind('#');
url = url.substring(0, refIndex);
}
- WebCore::Image* icon = WebCore::iconDatabase().iconForPageURL(url,
- WebCore::IntSize(16, 16));
+ // FIXME: This method should not be used from outside WebCore and will be removed.
+ // http://trac.webkit.org/changeset/81484
+ WebCore::Image* icon = WebCore::iconDatabase().synchronousIconForPageURL(url, WebCore::IntSize(16, 16));
if (icon)
favicon = webcoreImageToJavaBitmap(env, icon);
diff --git a/Source/WebKit/android/jni/WebIconDatabase.cpp b/Source/WebKit/android/jni/WebIconDatabase.cpp
index 53460f9..a8379e3 100644
--- a/Source/WebKit/android/jni/WebIconDatabase.cpp
+++ b/Source/WebKit/android/jni/WebIconDatabase.cpp
@@ -180,8 +180,9 @@ static jobject IconForPageUrl(JNIEnv* env, jobject obj, jstring url)
LOG_ASSERT(url, "No url given to iconForPageUrl");
WTF::String urlStr = jstringToWtfString(env, url);
- WebCore::Image* icon = WebCore::iconDatabase().iconForPageURL(urlStr,
- WebCore::IntSize(16, 16));
+ // FIXME: This method should not be used from outside WebCore and will be removed.
+ // http://trac.webkit.org/changeset/81484
+ WebCore::Image* icon = WebCore::iconDatabase().synchronousIconForPageURL(urlStr, WebCore::IntSize(16, 16));
LOGV("Retrieving icon for '%s' %p", urlStr.latin1().data(), icon);
return webcoreImageToJavaBitmap(env, icon);
}