Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1796)

Unified Diff: bindings/js/JSEventTarget.cpp

Issue 113554: For local review prior to sending to webkit (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bindings/js/JSDOMWindowCustom.cpp ('k') | bindings/v8/custom/V8DOMApplicationCacheCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « bindings/js/JSDOMWindowCustom.cpp ('k') | bindings/v8/custom/V8DOMApplicationCacheCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698