summaryrefslogtreecommitdiffstats
path: root/WebCore/loader
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:51:23 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:51:23 -0800
commite933faefa1e899dbd5bf371f499cc682aff46c83 (patch)
tree8fb31ff5c9a41aec9912d0253be7ef0445e2f58a /WebCore/loader
parent1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (diff)
downloadexternal_webkit-e933faefa1e899dbd5bf371f499cc682aff46c83.zip
external_webkit-e933faefa1e899dbd5bf371f499cc682aff46c83.tar.gz
external_webkit-e933faefa1e899dbd5bf371f499cc682aff46c83.tar.bz2
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'WebCore/loader')
-rw-r--r--WebCore/loader/CachedCSSStyleSheet.cpp2
-rw-r--r--WebCore/loader/CachedScript.cpp2
-rw-r--r--WebCore/loader/icon/IconDatabase.cpp18
3 files changed, 4 insertions, 18 deletions
diff --git a/WebCore/loader/CachedCSSStyleSheet.cpp b/WebCore/loader/CachedCSSStyleSheet.cpp
index ace938b..9059f25 100644
--- a/WebCore/loader/CachedCSSStyleSheet.cpp
+++ b/WebCore/loader/CachedCSSStyleSheet.cpp
@@ -76,7 +76,7 @@ void CachedCSSStyleSheet::data(PassRefPtr<SharedBuffer> data, bool allDataReceiv
if (m_data.get()) {
m_sheet = m_decoder->decode(m_data->data(), encodedSize());
m_sheet += m_decoder->flush();
-#ifdef ANDROID_FIX
+#ifdef ANDROID_FIX // FIXME Newer webkit makes decode temporary; remove on webkit update
// report decoded size too
setDecodedSize(m_sheet.length() * sizeof(UChar));
#endif
diff --git a/WebCore/loader/CachedScript.cpp b/WebCore/loader/CachedScript.cpp
index 9666eea..c8caea8 100644
--- a/WebCore/loader/CachedScript.cpp
+++ b/WebCore/loader/CachedScript.cpp
@@ -79,7 +79,7 @@ void CachedScript::data(PassRefPtr<SharedBuffer> data, bool allDataReceived)
setEncodedSize(m_data.get() ? m_data->size() : 0);
if (m_data.get())
m_script = m_encoding.decode(m_data->data(), encodedSize());
-#ifdef ANDROID_FIX
+#ifdef ANDROID_FIX // FIXME Newer webkit calls setDecodedSize in CachedScript::script(); remove on webkit update
// report decoded size too
setDecodedSize(m_script.length() * sizeof(UChar));
#endif
diff --git a/WebCore/loader/icon/IconDatabase.cpp b/WebCore/loader/icon/IconDatabase.cpp
index a47fb08..72e57fe 100644
--- a/WebCore/loader/icon/IconDatabase.cpp
+++ b/WebCore/loader/icon/IconDatabase.cpp
@@ -1356,28 +1356,14 @@ void* IconDatabase::syncThreadMainLoop()
bool didAnyWork = true;
while (didAnyWork) {
-#ifdef ANDROID_FIX
- // We should write the pending icons to the database before trying
- // to read any requested icons to ensure that a requested icon has
- // the correct data.
bool didWrite = writeToDatabase();
if (shouldStopThreadActivity())
break;
-
- didAnyWork = readFromDatabase();
- if (shouldStopThreadActivity())
- break;
-#else
+
didAnyWork = readFromDatabase();
if (shouldStopThreadActivity())
break;
-
- bool didWrite = writeToDatabase();
- if (shouldStopThreadActivity())
- break;
-#endif
-
-
+
// Prune unretained icons after the first time we sync anything out to the database
// This way, pruning won't be the only operation we perform to the database by itself
// We also don't want to bother doing this if the thread should be terminating (the user is quitting)