Title: [87424] trunk/Source/WebCore
Revision
87424
Author
[email protected]
Date
2011-05-26 13:09:55 -0700 (Thu, 26 May 2011)

Log Message

2011-05-26  Leandro Gracia Gil  <[email protected]>

        Reviewed by Dmitry Titov.

        [V8] Add missing compile guards for WebWorkers in WebCore.
        https://bugs.webkit.org/show_bug.cgi?id=61535

        No new tests - refactoring only.

        * bindings/v8/V8AbstractEventListener.cpp:
        (WebCore::V8AbstractEventListener::invokeEventHandler):
        * bindings/v8/V8DOMWrapper.cpp:
        (WebCore::V8DOMWrapper::instantiateV8Object):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (87423 => 87424)


--- trunk/Source/WebCore/ChangeLog	2011-05-26 19:53:00 UTC (rev 87423)
+++ trunk/Source/WebCore/ChangeLog	2011-05-26 20:09:55 UTC (rev 87424)
@@ -1,3 +1,17 @@
+2011-05-26  Leandro Gracia Gil  <[email protected]>
+
+        Reviewed by Dmitry Titov.
+
+        [V8] Add missing compile guards for WebWorkers in WebCore.
+        https://bugs.webkit.org/show_bug.cgi?id=61535
+
+        No new tests - refactoring only.
+
+        * bindings/v8/V8AbstractEventListener.cpp:
+        (WebCore::V8AbstractEventListener::invokeEventHandler):
+        * bindings/v8/V8DOMWrapper.cpp:
+        (WebCore::V8DOMWrapper::instantiateV8Object):
+
 2011-05-26  Mihai Parparita  <[email protected]>
 
         Reviewed by Adam Barth.

Modified: trunk/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp (87423 => 87424)


--- trunk/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp	2011-05-26 19:53:00 UTC (rev 87423)
+++ trunk/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp	2011-05-26 20:09:55 UTC (rev 87424)
@@ -156,8 +156,10 @@
             event->target()->uncaughtExceptionInEventHandler();
 
         if (!tryCatch.CanContinue()) { // Result of TerminateExecution().
+#if ENABLE(WORKERS)
             if (context->isWorkerContext())
                 static_cast<WorkerContext*>(context)->script()->forbidExecution();
+#endif
             return;
         }
         tryCatch.Reset();

Modified: trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp (87423 => 87424)


--- trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp	2011-05-26 19:53:00 UTC (rev 87423)
+++ trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp	2011-05-26 20:09:55 UTC (rev 87424)
@@ -256,7 +256,9 @@
 
 v8::Local<v8::Object> V8DOMWrapper::instantiateV8Object(V8Proxy* proxy, WrapperTypeInfo* type, void* impl)
 {
+#if ENABLE(WORKERS)
     WorkerContext* workerContext = 0;
+#endif
     if (V8IsolatedContext::getEntered()) {
         // This effectively disables the wrapper cache for isolated worlds.
         proxy = 0;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to