Changeset 56112 in webkit
- Timestamp:
- Mar 17, 2010 8:24:24 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56109 r56112 1 2010-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 1 15 2010-03-17 Yury Semikhatsky <yurys@chromium.org> 2 16 -
trunk/WebCore/bindings/v8/V8DOMWrapper.cpp
r55862 r56112 199 199 } 200 200 201 #if ENABLE(WORKERS) 201 202 v8::Local<v8::Function> V8DOMWrapper::getConstructor(WrapperTypeInfo* type, WorkerContext*) 202 203 { … … 211 212 return getConstructorForContext(type, context); 212 213 } 214 #endif 213 215 214 216 void V8DOMWrapper::setHiddenWindowReference(Frame* frame, const int internalIndex, v8::Handle<v8::Object> jsObject) … … 282 284 if (globalObjectPrototypeIsDOMWindow(globalPrototype)) 283 285 proxy = V8Proxy::retrieve(V8DOMWindow::toNative(globalPrototype)->frame()); 286 #if ENABLE(WORKERS) 284 287 else 285 288 workerContext = V8WorkerContext::toNative(lookupDOMWrapper(V8WorkerContext::GetTemplate(), context->Global())); 289 #endif 286 290 } 287 291 } -
trunk/WebCore/bindings/v8/V8Proxy.cpp
r55862 r56112 888 888 if (V8Proxy* proxy = V8Proxy::retrieve(context)) 889 889 return worldContext.adjustedContext(proxy); 890 #if ENABLE(WORKERS) 890 891 } else if (context->isWorkerContext()) { 891 892 if (WorkerContextExecutionProxy* proxy = static_cast<WorkerContext*>(context)->script()->proxy()) 892 893 return proxy->context(); 894 #endif 893 895 } 894 896 return v8::Local<v8::Context>();
Note: See TracChangeset
for help on using the changeset viewer.