diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/bindings/js/JSDataGridDataSource.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/bindings/js/JSDataGridDataSource.cpp | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/3rdparty/webkit/WebCore/bindings/js/JSDataGridDataSource.cpp b/src/3rdparty/webkit/WebCore/bindings/js/JSDataGridDataSource.cpp index e75b10bd29..02b421448f 100644 --- a/src/3rdparty/webkit/WebCore/bindings/js/JSDataGridDataSource.cpp +++ b/src/3rdparty/webkit/WebCore/bindings/js/JSDataGridDataSource.cpp @@ -24,6 +24,9 @@ */ #include "config.h" + +#if ENABLE(DATAGRID) + #include "JSDataGridDataSource.h" #include "Document.h" @@ -47,34 +50,6 @@ JSDataGridDataSource::~JSDataGridDataSource() { } -void JSDataGridDataSource::initialize(HTMLDataGridElement* datagrid) -{ - if (!m_frame->script()->isEnabled()) - return; - - JSLock lock(false); - RefPtr<JSDataGridDataSource> protect(this); - - ExecState* exec = m_frame->script()->globalObject()->globalExec(); - - if (!jsDataSource().isObject()) - return; - - JSValue initializeFunction = jsDataSource().get(exec, Identifier(exec, "initialize")); - CallData callData; - CallType callType = initializeFunction.getCallData(callData); - if (callType == CallTypeNone) - return; - - MarkedArgumentBuffer args; - args.append(toJS(exec, datagrid)); - - JSDOMWindowBase::commonJSGlobalData()->timeoutChecker.start(); - call(exec, initializeFunction, callType, callData, m_dataSource, args); - JSDOMWindowBase::commonJSGlobalData()->timeoutChecker.stop(); - - if (exec->hadException()) - reportCurrentException(exec); -} - } // namespace WebCore + +#endif // ENABLE(DATAGRID) |