Index: bindings/js/JSEventTarget.cpp |
=================================================================== |
--- bindings/js/JSEventTarget.cpp (revision 44202) |
+++ bindings/js/JSEventTarget.cpp (working copy) |
@@ -39,7 +39,7 @@ |
#include "XMLHttpRequest.h" |
#include "XMLHttpRequestUpload.h" |
-#if ENABLE(OFFLINE_WEB_APPLICATIONS) |
+#if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
#include "DOMApplicationCache.h" |
#include "JSDOMApplicationCache.h" |
#endif |
@@ -84,7 +84,7 @@ |
if (XMLHttpRequestUpload* upload = target->toXMLHttpRequestUpload()) |
return toJS(exec, upload); |
-#if ENABLE(OFFLINE_WEB_APPLICATIONS) |
+#if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
if (DOMApplicationCache* cache = target->toDOMApplicationCache()) |
// DOMApplicationCache is always created via JS, so we don't need to use cacheDOMObject() here. |
return getCachedDOMObjectWrapper(exec->globalData(), cache); |
@@ -119,7 +119,7 @@ |
if (value.isObject(&JSDOMWindowShell::s_info)) |
return static_cast<JSDOMWindowShell*>(asObject(value))->impl(); |
-#if ENABLE(OFFLINE_WEB_APPLICATIONS) |
+#if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
CONVERT_TO_EVENT_TARGET(DOMApplicationCache) |
#endif |