summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/android/SystemTimeAndroid.cpp
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2009-11-24 14:22:22 -0800
committerGrace Kloba <klobag@google.com>2009-12-02 11:13:36 -0800
commit8ec4217018562da37ecf4144e582fa848b807263 (patch)
treee917a4c71fff6f8c4d065c130ba5bc1486d64e60 /WebCore/platform/android/SystemTimeAndroid.cpp
parent73b03f71b87666e532e997c6bcd3eb6a4fc3228d (diff)
downloadexternal_webkit-8ec4217018562da37ecf4144e582fa848b807263.zip
external_webkit-8ec4217018562da37ecf4144e582fa848b807263.tar.gz
external_webkit-8ec4217018562da37ecf4144e582fa848b807263.tar.bz2
Enable WebKit page cache through WebSettings.
Add setXX() for the meta data in Settings. Add CachedFramePlatformDataAndroid to preserve the state for the cachedFrame. http://b/issue?id=2284168
Diffstat (limited to 'WebCore/platform/android/SystemTimeAndroid.cpp')
-rw-r--r--WebCore/platform/android/SystemTimeAndroid.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/android/SystemTimeAndroid.cpp b/WebCore/platform/android/SystemTimeAndroid.cpp
index a9c862a..b4a0699 100644
--- a/WebCore/platform/android/SystemTimeAndroid.cpp
+++ b/WebCore/platform/android/SystemTimeAndroid.cpp
@@ -30,8 +30,9 @@ namespace WebCore {
float userIdleTime()
{
- // Needed for PageCache, which we currently have disabled.
- return 0.0F;
+ // return an arbitrarily high userIdleTime so that releasing pages from the
+ // page cache isn't postponed.
+ return 1000.0F;
}
} // namespace WebCore