Changeset 45018 in webkit
- Timestamp:
- Jun 23, 2009 5:39:02 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r45016 r45018 1 2009-06-23 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Dave Hyatt. 4 5 Test for https://bugs.webkit.org/show_bug.cgi?id=26516 6 Add initial implementation of DataGridDataSource 7 8 * fast/dom/HTMLDataGridElement: Added. 9 * fast/dom/HTMLDataGridElement/DataGridDataSource-basic-expected.txt: Added. 10 * fast/dom/HTMLDataGridElement/DataGridDataSource-basic.html: Added. 11 1 12 2009-06-23 Ryosuke Niwa <rniwa@google.com> 2 13 -
trunk/WebCore/ChangeLog
r45016 r45018 1 2009-06-23 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Dave Hyatt. 4 5 Fix for https://bugs.webkit.org/show_bug.cgi?id=26516 6 Add initial implementation of DataGridDataSource 7 8 - Initial implementation only supports the initialize callback function. 9 10 Test: fast/dom/HTMLDataGridElement/DataGridDataSource-basic.html 11 12 * WebCore.xcodeproj/project.pbxproj: 13 * GNUmakefile.am: 14 * WebCore.pro: 15 * WebCore.vcproj/WebCore.vcproj: 16 * WebCore.xcodeproj/project.pbxproj: 17 * WebCoreSources.bkl: 18 * bindings/js/JSDataGridDataSource.cpp: Added. 19 (WebCore::JSDataGridDataSource::JSDataGridDataSource): 20 (WebCore::JSDataGridDataSource::~JSDataGridDataSource): 21 (WebCore::JSDataGridDataSource::initialize): 22 * bindings/js/JSDataGridDataSource.h: Added. 23 (WebCore::JSDataGridDataSource::create): 24 (WebCore::JSDataGridDataSource::isJSDataGridDataSource): 25 (WebCore::JSDataGridDataSource::jsDataSource): 26 (WebCore::asJSDataGridDataSource): 27 * bindings/js/JSHTMLDataGridElementCustom.cpp: Added. 28 (WebCore::JSHTMLDataGridElement::listener): 29 (WebCore::JSHTMLDataGridElement::setListener): 30 * html/DataGridDataSource.h: Added. 31 (WebCore::DataGridDataSource::~DataGridDataSource): 32 (WebCore::DataGridDataSource::isJSDataGridDataSource): 33 * html/HTMLDataGridElement.cpp: 34 (WebCore::HTMLDataGridElement::HTMLDataGridElement): 35 (WebCore::HTMLDataGridElement::setDataSource): 36 (WebCore::HTMLDataGridElement::initializationTimerFired): 37 * html/HTMLDataGridElement.h: 38 (WebCore::HTMLDataGridElement::dataSource): 39 * html/HTMLDataGridElement.idl: 40 1 41 2009-06-23 Ryosuke Niwa <rniwa@google.com> 2 42 -
trunk/WebCore/GNUmakefile.am
r44964 r45018 296 296 WebCore/bindings/js/JSAttrCustom.cpp \ 297 297 WebCore/bindings/js/JSCDATASectionCustom.cpp \ 298 WebCore/bindings/js/JSDataGridDataSource.cpp \ 299 WebCore/bindings/js/JSDataGridDataSource.h \ 298 300 WebCore/bindings/js/JSCSSRuleCustom.cpp \ 299 301 WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp \ … … 336 338 WebCore/bindings/js/JSHTMLAppletElementCustom.h \ 337 339 WebCore/bindings/js/JSHTMLCollectionCustom.cpp \ 340 WebCore/bindings/js/JSHTMLDataGridElementCustom.cpp \ 338 341 WebCore/bindings/js/JSHTMLDocumentCustom.cpp \ 339 342 WebCore/bindings/js/JSHTMLElementCustom.cpp \ … … 893 896 WebCore/html/CollectionCache.h \ 894 897 WebCore/html/CollectionType.h \ 898 WebCore/html/DataGridDataSource.h \ 895 899 WebCore/html/File.cpp \ 896 900 WebCore/html/File.h \ -
trunk/WebCore/WebCore.pro
r44986 r45018 460 460 bindings/js/JSCustomVoidCallback.cpp \ 461 461 bindings/js/JSCustomXPathNSResolver.cpp \ 462 bindings/js/JSDataGridDataSource.cpp \ 462 463 bindings/js/JSDocumentCustom.cpp \ 463 464 bindings/js/JSDocumentFragmentCustom.cpp \ … … 474 475 bindings/js/JSHTMLAppletElementCustom.cpp \ 475 476 bindings/js/JSHTMLCollectionCustom.cpp \ 477 bindings/js/JSHTMLDataGridElementCustom.cpp \ 476 478 bindings/js/JSHTMLDocumentCustom.cpp \ 477 479 bindings/js/JSHTMLElementCustom.cpp \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r44964 r45018 24180 24180 </File> 24181 24181 <File 24182 RelativePath="..\html\DataGridDataSource.h" 24183 > 24184 </File> 24185 <File 24182 24186 RelativePath="..\html\CollectionCache.cpp" 24183 24187 > … … 27947 27951 </File> 27948 27952 <File 27953 RelativePath="..\bindings\js\JSDataGridDataSource.cpp" 27954 > 27955 </File> 27956 <File 27957 RelativePath="..\bindings\js\JSDataGridDataSource.cpp" 27958 > 27959 </File> 27960 <File 27949 27961 RelativePath="..\bindings\js\JSDocumentFragmentCustom.cpp" 27950 27962 > … … 28040 28052 <File 28041 28053 RelativePath="..\bindings\js\JSHTMLCollectionCustom.cpp" 28054 > 28055 </File> 28056 <File 28057 RelativePath="..\bindings\js\JSHTMLDataGridElementCustom.cpp" 28042 28058 > 28043 28059 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r44964 r45018 4127 4127 BCB773620C17853D00132BA4 /* JSNodeFilterCondition.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB7735F0C17853D00132BA4 /* JSNodeFilterCondition.h */; }; 4128 4128 BCB773630C17853D00132BA4 /* JSNodeFilterCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCB773600C17853D00132BA4 /* JSNodeFilterCustom.cpp */; }; 4129 BCBCAE370FF19385000762AE /* DataGridDataSource.h in Headers */ = {isa = PBXBuildFile; fileRef = BCBCAE360FF19385000762AE /* DataGridDataSource.h */; }; 4130 BCBCAE3C0FF19399000762AE /* JSDataGridDataSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCBCAE3A0FF19399000762AE /* JSDataGridDataSource.cpp */; }; 4131 BCBCAE3D0FF19399000762AE /* JSDataGridDataSource.h in Headers */ = {isa = PBXBuildFile; fileRef = BCBCAE3B0FF19399000762AE /* JSDataGridDataSource.h */; }; 4132 BCBCAE540FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCBCAE530FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp */; }; 4129 4133 BCBD21AB0E417AD400A070F2 /* KURLHash.h in Headers */ = {isa = PBXBuildFile; fileRef = BCBD21AA0E417AD400A070F2 /* KURLHash.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4130 4134 BCBFB53C0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCBFB53A0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp */; }; … … 8933 8937 BCB7735F0C17853D00132BA4 /* JSNodeFilterCondition.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSNodeFilterCondition.h; sourceTree = "<group>"; }; 8934 8938 BCB773600C17853D00132BA4 /* JSNodeFilterCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSNodeFilterCustom.cpp; sourceTree = "<group>"; }; 8939 BCBCAE360FF19385000762AE /* DataGridDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataGridDataSource.h; sourceTree = "<group>"; }; 8940 BCBCAE3A0FF19399000762AE /* JSDataGridDataSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDataGridDataSource.cpp; sourceTree = "<group>"; }; 8941 BCBCAE3B0FF19399000762AE /* JSDataGridDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDataGridDataSource.h; sourceTree = "<group>"; }; 8942 BCBCAE530FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataGridElementCustom.cpp; sourceTree = "<group>"; }; 8935 8943 BCBD21AA0E417AD400A070F2 /* KURLHash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KURLHash.h; sourceTree = "<group>"; }; 8936 8944 BCBFB53A0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMWindowShell.cpp; sourceTree = "<group>"; }; … … 11614 11622 93C441EE0F813A1A00C1A634 /* CollectionCache.h */, 11615 11623 93C441FF0F813AE100C1A634 /* CollectionType.h */, 11624 BCBCAE360FF19385000762AE /* DataGridDataSource.h */, 11616 11625 BCDBB8CC0E08958400C60FF6 /* File.cpp */, 11617 11626 BCDBB8CB0E08958400C60FF6 /* File.h */, … … 11635 11644 E44613900CD6331000FADA75 /* HTMLAudioElement.h */, 11636 11645 E44613910CD6331000FADA75 /* HTMLAudioElement.idl */, 11637 A8CFF79E0A156978000A4234 /* HTMLBRElement.cpp */,11638 A8CFF7A00A156978000A4234 /* HTMLBRElement.h */,11639 1AE2A9F30A1CDA5700B42B25 /* HTMLBRElement.idl */,11640 11646 A871DC1E0A15205700B12A68 /* HTMLBaseElement.cpp */, 11641 11647 A871DC130A15205700B12A68 /* HTMLBaseElement.h */, … … 11650 11656 A871DE200A152AC800B12A68 /* HTMLBodyElement.h */, 11651 11657 1AE2A9F20A1CDA5700B42B25 /* HTMLBodyElement.idl */, 11658 A8CFF79E0A156978000A4234 /* HTMLBRElement.cpp */, 11659 A8CFF7A00A156978000A4234 /* HTMLBRElement.h */, 11660 1AE2A9F30A1CDA5700B42B25 /* HTMLBRElement.idl */, 11652 11661 A81369B7097374F500D74463 /* HTMLButtonElement.cpp */, 11653 11662 A81369B6097374F500D74463 /* HTMLButtonElement.h */, … … 11659 11668 A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */, 11660 11669 85DF2F690AA3C74300AD64C5 /* HTMLCollection.idl */, 11670 BC77CDB70FEFF1210070887B /* HTMLDataGridCellElement.cpp */, 11671 BC77CDBB0FEFF1420070887B /* HTMLDataGridCellElement.h */, 11672 BC77CDA20FEFEB530070887B /* HTMLDataGridCellElement.idl */, 11673 BC77CBA90FEBF6C90070887B /* HTMLDataGridColElement.cpp */, 11674 BC77CB860FEBF5AF0070887B /* HTMLDataGridColElement.h */, 11675 BC77CB880FEBF5BA0070887B /* HTMLDataGridColElement.idl */, 11661 11676 BCF5245F0FEBEE5D0095BF26 /* HTMLDataGridElement.cpp */, 11662 11677 BC212A1E0FE8333200EC3708 /* HTMLDataGridElement.h */, 11663 11678 BC212A230FE8345D00EC3708 /* HTMLDataGridElement.idl */, 11664 BC77CDB70FEFF1210070887B /* HTMLDataGridCellElement.cpp */,11665 BC77CDA20FEFEB530070887B /* HTMLDataGridCellElement.idl */,11666 BC77CBA90FEBF6C90070887B /* HTMLDataGridColElement.cpp */,11667 BC77CB860FEBF5AF0070887B /* HTMLDataGridColElement.h */,11668 BC77CDBB0FEFF1420070887B /* HTMLDataGridCellElement.h */,11669 BC77CB880FEBF5BA0070887B /* HTMLDataGridColElement.idl */,11670 11679 BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */, 11671 11680 BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */, 11672 11681 BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */, 11673 A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */,11674 A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */,11675 1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */,11676 11682 A8EA79ED0A1916DF00A8EF5F /* HTMLDirectoryElement.cpp */, 11677 11683 A8EA79EE0A1916DF00A8EF5F /* HTMLDirectoryElement.h */, … … 11680 11686 A8EA7CA90A192B9C00A8EF5F /* HTMLDivElement.h */, 11681 11687 1A85B2AD0A1B2A6D00D8C87C /* HTMLDivElement.idl */, 11688 A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */, 11689 A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */, 11690 1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */, 11682 11691 F523D23B02DE4396018635CA /* HTMLDocument.cpp */, 11683 11692 F523D23C02DE4396018635CA /* HTMLDocument.h */, … … 11712 11721 A871DE1C0A152AC800B12A68 /* HTMLFrameSetElement.h */, 11713 11722 855542960AA4938800BA89F2 /* HTMLFrameSetElement.idl */, 11714 A8EA7CA50A192B9C00A8EF5F /* HTMLHRElement.cpp */,11715 A8EA7CA10A192B9C00A8EF5F /* HTMLHRElement.h */,11716 1AE2A9F90A1CDA5700B42B25 /* HTMLHRElement.idl */,11717 11723 A871DE190A152AC800B12A68 /* HTMLHeadElement.cpp */, 11718 11724 A871DE210A152AC800B12A68 /* HTMLHeadElement.h */, … … 11721 11727 A8EA7CAA0A192B9C00A8EF5F /* HTMLHeadingElement.h */, 11722 11728 1AE2A9F80A1CDA5700B42B25 /* HTMLHeadingElement.idl */, 11729 A8EA7CA50A192B9C00A8EF5F /* HTMLHRElement.cpp */, 11730 A8EA7CA10A192B9C00A8EF5F /* HTMLHRElement.h */, 11731 1AE2A9F90A1CDA5700B42B25 /* HTMLHRElement.idl */, 11723 11732 A871DE1A0A152AC800B12A68 /* HTMLHtmlElement.cpp */, 11724 11733 A871DE1B0A152AC800B12A68 /* HTMLHtmlElement.h */, … … 11740 11749 A81369C9097374F600D74463 /* HTMLKeygenElement.cpp */, 11741 11750 A81369C8097374F500D74463 /* HTMLKeygenElement.h */, 11742 A8EA79F00A1916DF00A8EF5F /* HTMLLIElement.cpp */,11743 A8EA79EA0A1916DF00A8EF5F /* HTMLLIElement.h */,11744 1AE2AAE60A1CE52E00B42B25 /* HTMLLIElement.idl */,11745 11751 A81369C7097374F500D74463 /* HTMLLabelElement.cpp */, 11746 11752 A81369C6097374F500D74463 /* HTMLLabelElement.h */, … … 11749 11755 A81369C4097374F500D74463 /* HTMLLegendElement.h */, 11750 11756 1AE2AACC0A1CDDDB00B42B25 /* HTMLLegendElement.idl */, 11757 A8EA79F00A1916DF00A8EF5F /* HTMLLIElement.cpp */, 11758 A8EA79EA0A1916DF00A8EF5F /* HTMLLIElement.h */, 11759 1AE2AAE60A1CE52E00B42B25 /* HTMLLIElement.idl */, 11751 11760 A871DC150A15205700B12A68 /* HTMLLinkElement.cpp */, 11752 11761 A871DC140A15205700B12A68 /* HTMLLinkElement.h */, … … 11772 11781 A8DF3FCD097FA0FB0052981B /* HTMLNameCollection.cpp */, 11773 11782 A8DF3FCC097FA0FB0052981B /* HTMLNameCollection.h */, 11783 A871D4510A127CBC00B12A68 /* HTMLObjectElement.cpp */, 11784 A871D4500A127CBC00B12A68 /* HTMLObjectElement.h */, 11785 855542980AA4938800BA89F2 /* HTMLObjectElement.idl */, 11774 11786 A8EA79EF0A1916DF00A8EF5F /* HTMLOListElement.cpp */, 11775 11787 A8EA79E50A1916DF00A8EF5F /* HTMLOListElement.h */, 11776 11788 1A85B1CB0A1B22DC00D8C87C /* HTMLOListElement.idl */, 11777 A871D4510A127CBC00B12A68 /* HTMLObjectElement.cpp */,11778 A871D4500A127CBC00B12A68 /* HTMLObjectElement.h */,11779 855542980AA4938800BA89F2 /* HTMLObjectElement.idl */,11780 11789 A81369C3097374F500D74463 /* HTMLOptGroupElement.cpp */, 11781 11790 A81369C2097374F500D74463 /* HTMLOptGroupElement.h */, … … 13346 13355 E10B93C20B73C291003ED890 /* JSCustomXPathNSResolver.cpp */, 13347 13356 E10B937B0B73C00A003ED890 /* JSCustomXPathNSResolver.h */, 13357 BCBCAE3A0FF19399000762AE /* JSDataGridDataSource.cpp */, 13358 BCBCAE3B0FF19399000762AE /* JSDataGridDataSource.h */, 13348 13359 93B70D4709EB0C7C009D8468 /* JSDOMBinding.cpp */, 13349 13360 93B70D4809EB0C7C009D8468 /* JSDOMBinding.h */, … … 13479 13490 children = ( 13480 13491 BC2ED6BB0C6BD2F000920BFF /* JSAttrCustom.cpp */, 13492 1A9EF4560A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp */, 13481 13493 93BA59B10F2AA5FE008E8E99 /* JSCDATASectionCustom.cpp */, 13494 BCA83E510D7CE205003421A8 /* JSClipboardCustom.cpp */, 13495 C0DFC86F0DB6841A003EAE7C /* JSConsoleCustom.cpp */, 13496 FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */, 13482 13497 BC46C1ED0C0DDBDF0020CFC3 /* JSCSSRuleCustom.cpp */, 13483 13498 BC5825F20C0B89380053F1B5 /* JSCSSStyleDeclarationCustom.cpp */, 13484 13499 BC20FB7E0C0E8E6C00D1447F /* JSCSSValueCustom.cpp */, 13485 1A9EF4560A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp */,13486 BCA83E510D7CE205003421A8 /* JSClipboardCustom.cpp */,13487 C0DFC86F0DB6841A003EAE7C /* JSConsoleCustom.cpp */,13488 FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */,13489 13500 FE80D7A20E9C1ED2000D6F75 /* JSCustomPositionCallback.cpp */, 13490 13501 FE80D7A30E9C1ED2000D6F75 /* JSCustomPositionCallback.h */, … … 13501 13512 1A3417C80CECFF250049CBDE /* JSCustomVoidCallback.cpp */, 13502 13513 1A3417C70CECFF250049CBDE /* JSCustomVoidCallback.h */, 13514 1AE830420CAB0ED1002237AE /* JSDatabaseCustom.cpp */, 13515 929264760B61FC7200B41D34 /* JSDocumentCustom.cpp */, 13516 BC1DEA4E0E268EB60083A73F /* JSDocumentFragmentCustom.cpp */, 13503 13517 1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */, 13504 13518 BCD9C25E0C17AA67005C90A2 /* JSDOMWindowCustom.cpp */, 13505 13519 652FBBBB0DE27CB60001D386 /* JSDOMWindowCustom.h */, 13506 1AE830420CAB0ED1002237AE /* JSDatabaseCustom.cpp */,13507 929264760B61FC7200B41D34 /* JSDocumentCustom.cpp */,13508 BC1DEA4E0E268EB60083A73F /* JSDocumentFragmentCustom.cpp */,13509 13520 BC2ED5540C6B9BD300920BFF /* JSElementCustom.cpp */, 13510 13521 BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */, 13511 13522 FE80D7A60E9C1ED2000D6F75 /* JSGeolocationCustom.cpp */, 13523 BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */, 13512 13524 BC4EDEF30C08F3FB007EDD49 /* JSHTMLAppletElementCustom.cpp */, 13513 13525 BCCBAD3A0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp */, 13526 BCBCAE530FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp */, 13514 13527 BC51580A0C03D404008BB0EE /* JSHTMLDocumentCustom.cpp */, 13515 13528 BC5823F40C0A98DF0053F1B5 /* JSHTMLElementCustom.cpp */, … … 13524 13537 BC17F9650B64EBB8004A65CB /* JSHTMLSelectElementCustom.cpp */, 13525 13538 AB4CB4EA0B8BDA3D009F40B0 /* JSHTMLSelectElementCustom.h */, 13526 BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */,13527 13539 A7D0318D0E93540300E24ACD /* JSImageDataCustom.cpp */, 13528 13540 41F061690F5EFBDD00A07EAC /* JSInspectorControllerCustom.cpp */, … … 13542 13554 51DCE8010CAC9F1C00488358 /* JSSQLResultSetRowListCustom.cpp */, 13543 13555 1AD2316D0CD269E700C1F194 /* JSSQLTransactionCustom.cpp */, 13556 51D0C5150DAA90B7003B3831 /* JSStorageCustom.cpp */, 13557 BC98A27C0C0C9950004BEBF7 /* JSStyleSheetCustom.cpp */, 13558 A84EBD770CB8C89200079609 /* JSStyleSheetListCustom.cpp */, 13544 13559 08A48A6D0E86CF6D00E225DD /* JSSVGElementInstanceCustom.cpp */, 13545 13560 08E4FE450E2BD41400F4CAE0 /* JSSVGLengthCustom.cpp */, … … 13549 13564 516BB7910CE91E6800512F79 /* JSSVGPointListCustom.cpp */, 13550 13565 B2D3FC890C2212CB00CF3618 /* JSSVGTransformListCustom.cpp */, 13551 51D0C5150DAA90B7003B3831 /* JSStorageCustom.cpp */,13552 BC98A27C0C0C9950004BEBF7 /* JSStyleSheetCustom.cpp */,13553 A84EBD770CB8C89200079609 /* JSStyleSheetListCustom.cpp */,13554 13566 1A2C40AA0DEB55AA005AF19E /* JSTextCustom.cpp */, 13555 13567 516BB7920CE91E6800512F79 /* JSTreeWalkerCustom.cpp */, … … 16867 16879 BC77CDCF0FEFF33B0070887B /* JSHTMLDataGridCellElement.h in Headers */, 16868 16880 BC77CEB30FF017F20070887B /* RenderDataGrid.h in Headers */, 16881 BCBCAE370FF19385000762AE /* DataGridDataSource.h in Headers */, 16882 BCBCAE3D0FF19399000762AE /* JSDataGridDataSource.h in Headers */, 16869 16883 ); 16870 16884 runOnlyForDeploymentPostprocessing = 0; … … 18873 18887 BC77CDCE0FEFF33B0070887B /* JSHTMLDataGridCellElement.cpp in Sources */, 18874 18888 BC77CEC80FF01CBE0070887B /* RenderDataGrid.cpp in Sources */, 18889 BCBCAE3C0FF19399000762AE /* JSDataGridDataSource.cpp in Sources */, 18890 BCBCAE540FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp in Sources */, 18875 18891 ); 18876 18892 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/WebCoreSources.bkl
r44964 r45018 72 72 bindings/js/JSCustomXPathNSResolver.cpp 73 73 bindings/js/JSDatabaseCustom.cpp 74 bindings/js/JSDataGridDataSource.cpp 74 75 bindings/js/JSDOMApplicationCacheCustom.cpp 75 76 bindings/js/JSDOMGlobalObject.cpp … … 87 88 bindings/js/JSHTMLAppletElementCustom.cpp 88 89 bindings/js/JSHTMLCollectionCustom.cpp 90 bindings/js/JSHTMLDataGridElementCustom.cpp 89 91 bindings/js/JSHTMLDocumentCustom.cpp 90 92 bindings/js/JSHTMLElementCustom.cpp -
trunk/WebCore/html/HTMLDataGridElement.cpp
r44964 r45018 35 35 using namespace HTMLNames; 36 36 37 HTMLDataGridElement::HTMLDataGridElement(const QualifiedName& name, Document* doc) 38 : HTMLElement(name, doc) 37 HTMLDataGridElement::HTMLDataGridElement(const QualifiedName& tagName, Document* document) 38 : HTMLElement(tagName, document) 39 , m_initializationTimer(this, &HTMLDataGridElement::initializationTimerFired) 40 { 41 } 42 43 HTMLDataGridElement::~HTMLDataGridElement() 39 44 { 40 45 } … … 82 87 } 83 88 89 void HTMLDataGridElement::setDataSource(PassRefPtr<DataGridDataSource> dataSource) 90 { 91 if (m_initializationTimer.isActive()) 92 m_initializationTimer.stop(); 93 94 m_dataSource = dataSource; 95 m_initializationTimer.startOneShot(0); 84 96 } 97 98 void HTMLDataGridElement::initializationTimerFired(Timer<HTMLDataGridElement>*) 99 { 100 m_dataSource->initialize(this); 101 } 102 103 } // namespace WebCore -
trunk/WebCore/html/HTMLDataGridElement.h
r44964 r45018 27 27 #define HTMLDataGridElement_h 28 28 29 #include "DataGridDataSource.h" 29 30 #include "HTMLElement.h" 31 #include "Timer.h" 30 32 31 33 namespace WebCore { 32 34 33 class HTMLDataGridElement : public HTMLElement 34 { 35 class HTMLDataGridElement : public HTMLElement { 35 36 public: 36 37 HTMLDataGridElement(const QualifiedName&, Document*); 37 38 virtual ~HTMLDataGridElement(); 39 38 40 virtual int tagPriority() const { return 6; } // Same as <select>s 39 41 virtual bool checkDTD(const Node*); … … 49 51 bool multiple() const; 50 52 void setMultiple(bool); 53 54 void setDataSource(PassRefPtr<DataGridDataSource>); 55 DataGridDataSource* dataSource() const { return m_dataSource.get(); } 56 57 private: 58 void initializationTimerFired(Timer<HTMLDataGridElement>*); 59 60 Timer<HTMLDataGridElement> m_initializationTimer; 61 RefPtr<DataGridDataSource> m_dataSource; 51 62 }; 52 63 53 } // namespace64 } // namespace WebCore 54 65 55 #endif 66 #endif // HTMLDataGridElement_h -
trunk/WebCore/html/HTMLDataGridElement.idl
r44964 r45018 26 26 module html { 27 27 28 interface [GenerateConstructor] HTMLDataGridElement : HTMLElement { 29 attribute boolean autofocus; // Whether or not the datagrid should autofocus. 30 attribute boolean disabled; // Whether or not the datagrid can be interacted with. 31 attribute boolean multiple; // Whether or not the datagrid supports multiple selection. 32 }; 28 interface [ 29 GenerateConstructor 30 ] HTMLDataGridElement : HTMLElement { 31 attribute [Custom] DataGridDataSource dataSource; 32 33 attribute boolean autofocus; // Whether or not the datagrid should autofocus. 34 attribute boolean disabled; // Whether or not the datagrid can be interacted with. 35 attribute boolean multiple; // Whether or not the datagrid supports multiple selection. 36 }; 33 37 34 38 }
Note: See TracChangeset
for help on using the changeset viewer.