-
jorlow@chromium.org authored
2009-07-22 Jens Alfke <snej@chromium.org> Reviewed by Darin Fisher. Hook up V8 bindings for DataGrid elements. https://bugs.webkit.org/show_bug.cgi?id=27383 http://code.google.com/p/chromium/issues/detail?id=16730 Tests: Enhanced LayoutTests/fast/dom/HTMLDataGridElement/* to handle exceptions, check appropriate JS prototypes, and test column-list's item() method as well as array-indexing. * WebCore.gypi: Added new source files. * bindings/scripts/CodeGeneratorV8.pm: Made GenerateBatchedAttributeData put #if's around conditional attributes. * bindings/v8/DOMObjectsInclude.h: #include DataGrid headers. * bindings/v8/V8DOMWrapper.cpp: Add bindings from HTML tags to datagrid templates. (WebCore::V8DOMWrapper::getTemplate): Customize datagrid template. * bindings/v8/V8DataGridDataSource.cpp: Added. (Based on JSDataGridDataSource) (WebCore::V8DataGridDataSource::V8DataGridDataSource): (WebCore::V8DataGridDataSource::~V8DataGridDataSource): * bindings/v8/V8DataGridDataSource.h: Added. (Based on JSDataGridDataSource) (WebCore::V8DataGridDataSource::create): (WebCore::V8DataGridDataSource::isJSDataGridDataSource): (WebCore::V8DataGridDataSource::jsDataSource): (WebCore::asV8DataGridDataSource): * bindings/v8/V8GCController.h: Added new handle type "DATASOURCE". * bindings/v8/V8Index.h: Conditionalize datagrid stuff. * bindings/v8/custom/V8CustomBinding.h: Declare more accessors. Conditionalize. * bindings/v8/custom/V8DataGridColumnListCustom.cpp: Added. * bindings/v8/custom/V8HTMLDataGridElementCustom.cpp: Fill in dataSource accessors. (WebCore::ACCESSOR_GETTER): (WebCore::ACCESSOR_SETTER): LayoutTests: 2009-07-22 Jens Alfke <snej@chromium.org> Reviewed by Darin Fisher. Hook up V8 bindings for DataGrid elements. https://bugs.webkit.org/show_bug.cgi?id=27383 http://code.google.com/p/chromium/issues/detail?id=16730 Tests: Enhanced LayoutTests/fast/dom/HTMLDataGridElement/* to handle exceptions, check appropriate JS prototypes, and test column-list's item() method as well as array-indexing. * fast/dom/HTMLDataGridElement/DataGridColumns-basic-expected.txt: * fast/dom/HTMLDataGridElement/DataGridColumns-basic.html: * fast/dom/HTMLDataGridElement/DataGridColumns-dom-attributes.html: * fast/dom/HTMLDataGridElement/DataGridColumns-dom-expected.txt: * fast/dom/HTMLDataGridElement/DataGridColumns-dom.html: * fast/dom/HTMLDataGridElement/DataGridDataSource-basic.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f2b8ca8a