Changeset 56112 in webkit


Ignore:
Timestamp:
Mar 17, 2010 8:24:24 AM (14 years ago)
Author:
steveblock@google.com
Message:

2010-03-17 Steve Block <steveblock@google.com>

Reviewed by Dimitri Glazkov.

Adds ENABLE(WORKERS) guards to V8 bindings
https://bugs.webkit.org/show_bug.cgi?id=36221

Build fix only, no new tests.

  • bindings/v8/V8DOMWrapper.cpp: (WebCore::V8DOMWrapper::instantiateV8Object):
  • bindings/v8/V8Proxy.cpp: (WebCore::toV8Context):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56109 r56112  
     12010-03-17  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Adds ENABLE(WORKERS) guards to V8 bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=36221
     7
     8        Build fix only, no new tests.
     9
     10        * bindings/v8/V8DOMWrapper.cpp:
     11        (WebCore::V8DOMWrapper::instantiateV8Object):
     12        * bindings/v8/V8Proxy.cpp:
     13        (WebCore::toV8Context):
     14
    1152010-03-17  Yury Semikhatsky  <yurys@chromium.org>
    216
  • trunk/WebCore/bindings/v8/V8DOMWrapper.cpp

    r55862 r56112  
    199199}
    200200
     201#if ENABLE(WORKERS)
    201202v8::Local<v8::Function> V8DOMWrapper::getConstructor(WrapperTypeInfo* type, WorkerContext*)
    202203{
     
    211212    return getConstructorForContext(type, context);
    212213}
     214#endif
    213215
    214216void V8DOMWrapper::setHiddenWindowReference(Frame* frame, const int internalIndex, v8::Handle<v8::Object> jsObject)
     
    282284            if (globalObjectPrototypeIsDOMWindow(globalPrototype))
    283285                proxy = V8Proxy::retrieve(V8DOMWindow::toNative(globalPrototype)->frame());
     286#if ENABLE(WORKERS)
    284287            else
    285288                workerContext = V8WorkerContext::toNative(lookupDOMWrapper(V8WorkerContext::GetTemplate(), context->Global()));
     289#endif
    286290        }
    287291    }
  • trunk/WebCore/bindings/v8/V8Proxy.cpp

    r55862 r56112  
    888888        if (V8Proxy* proxy = V8Proxy::retrieve(context))
    889889            return worldContext.adjustedContext(proxy);
     890#if ENABLE(WORKERS)
    890891    } else if (context->isWorkerContext()) {
    891892        if (WorkerContextExecutionProxy* proxy = static_cast<WorkerContext*>(context)->script()->proxy())
    892893            return proxy->context();
     894#endif
    893895    }
    894896    return v8::Local<v8::Context>();
Note: See TracChangeset for help on using the changeset viewer.