Unreviewed build fix
authormichaeln@google.com <michaeln@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 03:33:17 +0000 (03:33 +0000)
committermichaeln@google.com <michaeln@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2012 03:33:17 +0000 (03:33 +0000)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110136 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/bindings/generic/ActiveDOMCallback.cpp

index 57e5835..da840d9 100644 (file)
 
 #include "ActiveDOMObject.h"
 #include "ScriptExecutionContext.h"
+
+#if ENABLE(WORKERS)
 #include "WorkerContext.h"
+#endif
 
 namespace WebCore {
 
@@ -54,12 +57,14 @@ bool ActiveDOMCallback::canInvokeCallback() const
 
 bool ActiveDOMCallback::isScriptControllerTerminating() const
 {
+#if ENABLE(WORKERS)
     ScriptExecutionContext* context = scriptExecutionContext();
     if (context && context->isWorkerContext()) {
         WorkerScriptController* scriptController = static_cast<WorkerContext*>(context)->script();
         if (!scriptController || scriptController->isExecutionForbidden() || scriptController->isExecutionTerminating())
             return true;
     }
+#endif
     return false;
 }