summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/config.h2
-rw-r--r--Source/WebCore/loader/archive/android/WebArchiveAndroid.cpp4
-rw-r--r--Source/WebKit/android/jni/WebCoreFrameBridge.cpp2
3 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebCore/config.h b/Source/WebCore/config.h
index 1954e0d..3018e29 100644
--- a/Source/WebCore/config.h
+++ b/Source/WebCore/config.h
@@ -119,8 +119,6 @@
#define ENABLE_XHTMLMP 0
#define ENABLE_XPATH 1
#define ENABLE_XSLT 1
-#undef ENABLE_ARCHIVE // Enabled by default in Platform.h
-#define ENABLE_ARCHIVE 1
#define ENABLE_OFFLINE_WEB_APPLICATIONS 1
#define ENABLE_TOUCH_EVENTS 1
#undef ENABLE_GEOLOCATION // Disabled by default in Platform.h
diff --git a/Source/WebCore/loader/archive/android/WebArchiveAndroid.cpp b/Source/WebCore/loader/archive/android/WebArchiveAndroid.cpp
index 49cfe9d..9cff676 100644
--- a/Source/WebCore/loader/archive/android/WebArchiveAndroid.cpp
+++ b/Source/WebCore/loader/archive/android/WebArchiveAndroid.cpp
@@ -28,6 +28,8 @@
#include "config.h"
#include "WebArchiveAndroid.h"
+#if ENABLE(ARCHIVE)
+
#include "Base64.h"
#include <libxml/encoding.h>
#include <libxml/parser.h>
@@ -467,3 +469,5 @@ bool WebArchiveAndroid::saveWebArchive(xmlTextWriterPtr writer)
}
}
+
+#endif // ENABLE(ARCHIVE)
diff --git a/Source/WebKit/android/jni/WebCoreFrameBridge.cpp b/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
index 1ba5934..21ac8ef 100644
--- a/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/Source/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -1504,9 +1504,9 @@ static jstring SaveWebArchive(JNIEnv *env, jobject obj, jstring basename, jboole
if (result)
return wtfStringToJstring(env, filename);
+#endif
return NULL;
-#endif
}
static jstring ExternalRepresentation(JNIEnv *env, jobject obj)