summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebSettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebSettings.cpp')
-rw-r--r--WebKit/android/jni/WebSettings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebSettings.cpp b/WebKit/android/jni/WebSettings.cpp
index 9b441c8..29d72e4 100644
--- a/WebKit/android/jni/WebSettings.cpp
+++ b/WebKit/android/jni/WebSettings.cpp
@@ -354,7 +354,7 @@ public:
WebCore::cacheStorage().setCacheDirectory(path);
}
}
- jlong maxsize = env->GetIntField(obj, gFieldIds->mAppCacheMaxSize);
+ jlong maxsize = env->GetLongField(obj, gFieldIds->mAppCacheMaxSize);
WebCore::cacheStorage().setMaximumSize(maxsize);
#endif
@@ -372,7 +372,7 @@ public:
#endif
flag = env->GetBooleanField(obj, gFieldIds->mShrinksStandaloneImagesToFit);
s->setShrinksStandaloneImagesToFit(flag);
- jlong maxImage = env->GetIntField(obj, gFieldIds->mMaximumDecodedImageSize);
+ jlong maxImage = env->GetLongField(obj, gFieldIds->mMaximumDecodedImageSize);
if (maxImage == 0)
maxImage = computeMaxBitmapSizeForCache();
s->setMaximumDecodedImageSize(maxImage);