Changeset 45018 in webkit


Ignore:
Timestamp:
Jun 23, 2009 5:39:02 PM (15 years ago)
Author:
weinig@apple.com
Message:

WebCore:

2009-06-23 Sam Weinig <sam@webkit.org>

Reviewed by Dave Hyatt.

Fix for https://bugs.webkit.org/show_bug.cgi?id=26516
Add initial implementation of DataGridDataSource

  • Initial implementation only supports the initialize callback function.

Test: fast/dom/HTMLDataGridElement/DataGridDataSource-basic.html

  • WebCore.xcodeproj/project.pbxproj:
  • GNUmakefile.am:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • WebCoreSources.bkl:
  • bindings/js/JSDataGridDataSource.cpp: Added. (WebCore::JSDataGridDataSource::JSDataGridDataSource): (WebCore::JSDataGridDataSource::~JSDataGridDataSource): (WebCore::JSDataGridDataSource::initialize):
  • bindings/js/JSDataGridDataSource.h: Added. (WebCore::JSDataGridDataSource::create): (WebCore::JSDataGridDataSource::isJSDataGridDataSource): (WebCore::JSDataGridDataSource::jsDataSource): (WebCore::asJSDataGridDataSource):
  • bindings/js/JSHTMLDataGridElementCustom.cpp: Added. (WebCore::JSHTMLDataGridElement::listener): (WebCore::JSHTMLDataGridElement::setListener):
  • html/DataGridDataSource.h: Added. (WebCore::DataGridDataSource::~DataGridDataSource): (WebCore::DataGridDataSource::isJSDataGridDataSource):
  • html/HTMLDataGridElement.cpp: (WebCore::HTMLDataGridElement::HTMLDataGridElement): (WebCore::HTMLDataGridElement::setDataSource): (WebCore::HTMLDataGridElement::initializationTimerFired):
  • html/HTMLDataGridElement.h: (WebCore::HTMLDataGridElement::dataSource):
  • html/HTMLDataGridElement.idl:

LayoutTests:

2009-06-23 Sam Weinig <sam@webkit.org>

Reviewed by Dave Hyatt.

Test for https://bugs.webkit.org/show_bug.cgi?id=26516
Add initial implementation of DataGridDataSource

  • fast/dom/HTMLDataGridElement: Added.
  • fast/dom/HTMLDataGridElement/DataGridDataSource-basic-expected.txt: Added.
  • fast/dom/HTMLDataGridElement/DataGridDataSource-basic.html: Added.
Location:
trunk
Files:
7 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r45016 r45018  
     12009-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
    1122009-06-23  Ryosuke Niwa  <rniwa@google.com>
    213
  • trunk/WebCore/ChangeLog

    r45016 r45018  
     12009-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
    1412009-06-23  Ryosuke Niwa  <rniwa@google.com>
    242
  • trunk/WebCore/GNUmakefile.am

    r44964 r45018  
    296296        WebCore/bindings/js/JSAttrCustom.cpp \
    297297        WebCore/bindings/js/JSCDATASectionCustom.cpp \
     298        WebCore/bindings/js/JSDataGridDataSource.cpp \
     299        WebCore/bindings/js/JSDataGridDataSource.h \
    298300        WebCore/bindings/js/JSCSSRuleCustom.cpp \
    299301        WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp \
     
    336338        WebCore/bindings/js/JSHTMLAppletElementCustom.h \
    337339        WebCore/bindings/js/JSHTMLCollectionCustom.cpp \
     340        WebCore/bindings/js/JSHTMLDataGridElementCustom.cpp \
    338341        WebCore/bindings/js/JSHTMLDocumentCustom.cpp \
    339342        WebCore/bindings/js/JSHTMLElementCustom.cpp \
     
    893896        WebCore/html/CollectionCache.h \
    894897        WebCore/html/CollectionType.h \
     898        WebCore/html/DataGridDataSource.h \
    895899        WebCore/html/File.cpp \
    896900        WebCore/html/File.h \
  • trunk/WebCore/WebCore.pro

    r44986 r45018  
    460460    bindings/js/JSCustomVoidCallback.cpp \
    461461    bindings/js/JSCustomXPathNSResolver.cpp \
     462    bindings/js/JSDataGridDataSource.cpp \
    462463    bindings/js/JSDocumentCustom.cpp \
    463464    bindings/js/JSDocumentFragmentCustom.cpp \
     
    474475    bindings/js/JSHTMLAppletElementCustom.cpp \
    475476    bindings/js/JSHTMLCollectionCustom.cpp \
     477    bindings/js/JSHTMLDataGridElementCustom.cpp \
    476478    bindings/js/JSHTMLDocumentCustom.cpp \
    477479    bindings/js/JSHTMLElementCustom.cpp \
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r44964 r45018  
    2418024180                        </File>
    2418124181                        <File
     24182                                RelativePath="..\html\DataGridDataSource.h"
     24183                                >
     24184                        </File>
     24185                        <File
    2418224186                                RelativePath="..\html\CollectionCache.cpp"
    2418324187                                >
     
    2794727951                                </File>
    2794827952                                <File
     27953                                        RelativePath="..\bindings\js\JSDataGridDataSource.cpp"
     27954                                        >
     27955                                </File>
     27956                                <File
     27957                                        RelativePath="..\bindings\js\JSDataGridDataSource.cpp"
     27958                                        >
     27959                                </File>
     27960                                <File
    2794927961                                        RelativePath="..\bindings\js\JSDocumentFragmentCustom.cpp"
    2795027962                                        >
     
    2804028052                                <File
    2804128053                                        RelativePath="..\bindings\js\JSHTMLCollectionCustom.cpp"
     28054                                        >
     28055                                </File>
     28056                                <File
     28057                                        RelativePath="..\bindings\js\JSHTMLDataGridElementCustom.cpp"
    2804228058                                        >
    2804328059                                </File>
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r44964 r45018  
    41274127                BCB773620C17853D00132BA4 /* JSNodeFilterCondition.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB7735F0C17853D00132BA4 /* JSNodeFilterCondition.h */; };
    41284128                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 */; };
    41294133                BCBD21AB0E417AD400A070F2 /* KURLHash.h in Headers */ = {isa = PBXBuildFile; fileRef = BCBD21AA0E417AD400A070F2 /* KURLHash.h */; settings = {ATTRIBUTES = (Private, ); }; };
    41304134                BCBFB53C0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCBFB53A0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp */; };
     
    89338937                BCB7735F0C17853D00132BA4 /* JSNodeFilterCondition.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSNodeFilterCondition.h; sourceTree = "<group>"; };
    89348938                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>"; };
    89358943                BCBD21AA0E417AD400A070F2 /* KURLHash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KURLHash.h; sourceTree = "<group>"; };
    89368944                BCBFB53A0DCD29CF0019B3E5 /* JSDOMWindowShell.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMWindowShell.cpp; sourceTree = "<group>"; };
     
    1161411622                                93C441EE0F813A1A00C1A634 /* CollectionCache.h */,
    1161511623                                93C441FF0F813AE100C1A634 /* CollectionType.h */,
     11624                                BCBCAE360FF19385000762AE /* DataGridDataSource.h */,
    1161611625                                BCDBB8CC0E08958400C60FF6 /* File.cpp */,
    1161711626                                BCDBB8CB0E08958400C60FF6 /* File.h */,
     
    1163511644                                E44613900CD6331000FADA75 /* HTMLAudioElement.h */,
    1163611645                                E44613910CD6331000FADA75 /* HTMLAudioElement.idl */,
    11637                                 A8CFF79E0A156978000A4234 /* HTMLBRElement.cpp */,
    11638                                 A8CFF7A00A156978000A4234 /* HTMLBRElement.h */,
    11639                                 1AE2A9F30A1CDA5700B42B25 /* HTMLBRElement.idl */,
    1164011646                                A871DC1E0A15205700B12A68 /* HTMLBaseElement.cpp */,
    1164111647                                A871DC130A15205700B12A68 /* HTMLBaseElement.h */,
     
    1165011656                                A871DE200A152AC800B12A68 /* HTMLBodyElement.h */,
    1165111657                                1AE2A9F20A1CDA5700B42B25 /* HTMLBodyElement.idl */,
     11658                                A8CFF79E0A156978000A4234 /* HTMLBRElement.cpp */,
     11659                                A8CFF7A00A156978000A4234 /* HTMLBRElement.h */,
     11660                                1AE2A9F30A1CDA5700B42B25 /* HTMLBRElement.idl */,
    1165211661                                A81369B7097374F500D74463 /* HTMLButtonElement.cpp */,
    1165311662                                A81369B6097374F500D74463 /* HTMLButtonElement.h */,
     
    1165911668                                A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */,
    1166011669                                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 */,
    1166111676                                BCF5245F0FEBEE5D0095BF26 /* HTMLDataGridElement.cpp */,
    1166211677                                BC212A1E0FE8333200EC3708 /* HTMLDataGridElement.h */,
    1166311678                                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 */,
    1167011679                                BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */,
    1167111680                                BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */,
    1167211681                                BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */,
    11673                                 A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */,
    11674                                 A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */,
    11675                                 1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */,
    1167611682                                A8EA79ED0A1916DF00A8EF5F /* HTMLDirectoryElement.cpp */,
    1167711683                                A8EA79EE0A1916DF00A8EF5F /* HTMLDirectoryElement.h */,
     
    1168011686                                A8EA7CA90A192B9C00A8EF5F /* HTMLDivElement.h */,
    1168111687                                1A85B2AD0A1B2A6D00D8C87C /* HTMLDivElement.idl */,
     11688                                A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */,
     11689                                A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */,
     11690                                1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */,
    1168211691                                F523D23B02DE4396018635CA /* HTMLDocument.cpp */,
    1168311692                                F523D23C02DE4396018635CA /* HTMLDocument.h */,
     
    1171211721                                A871DE1C0A152AC800B12A68 /* HTMLFrameSetElement.h */,
    1171311722                                855542960AA4938800BA89F2 /* HTMLFrameSetElement.idl */,
    11714                                 A8EA7CA50A192B9C00A8EF5F /* HTMLHRElement.cpp */,
    11715                                 A8EA7CA10A192B9C00A8EF5F /* HTMLHRElement.h */,
    11716                                 1AE2A9F90A1CDA5700B42B25 /* HTMLHRElement.idl */,
    1171711723                                A871DE190A152AC800B12A68 /* HTMLHeadElement.cpp */,
    1171811724                                A871DE210A152AC800B12A68 /* HTMLHeadElement.h */,
     
    1172111727                                A8EA7CAA0A192B9C00A8EF5F /* HTMLHeadingElement.h */,
    1172211728                                1AE2A9F80A1CDA5700B42B25 /* HTMLHeadingElement.idl */,
     11729                                A8EA7CA50A192B9C00A8EF5F /* HTMLHRElement.cpp */,
     11730                                A8EA7CA10A192B9C00A8EF5F /* HTMLHRElement.h */,
     11731                                1AE2A9F90A1CDA5700B42B25 /* HTMLHRElement.idl */,
    1172311732                                A871DE1A0A152AC800B12A68 /* HTMLHtmlElement.cpp */,
    1172411733                                A871DE1B0A152AC800B12A68 /* HTMLHtmlElement.h */,
     
    1174011749                                A81369C9097374F600D74463 /* HTMLKeygenElement.cpp */,
    1174111750                                A81369C8097374F500D74463 /* HTMLKeygenElement.h */,
    11742                                 A8EA79F00A1916DF00A8EF5F /* HTMLLIElement.cpp */,
    11743                                 A8EA79EA0A1916DF00A8EF5F /* HTMLLIElement.h */,
    11744                                 1AE2AAE60A1CE52E00B42B25 /* HTMLLIElement.idl */,
    1174511751                                A81369C7097374F500D74463 /* HTMLLabelElement.cpp */,
    1174611752                                A81369C6097374F500D74463 /* HTMLLabelElement.h */,
     
    1174911755                                A81369C4097374F500D74463 /* HTMLLegendElement.h */,
    1175011756                                1AE2AACC0A1CDDDB00B42B25 /* HTMLLegendElement.idl */,
     11757                                A8EA79F00A1916DF00A8EF5F /* HTMLLIElement.cpp */,
     11758                                A8EA79EA0A1916DF00A8EF5F /* HTMLLIElement.h */,
     11759                                1AE2AAE60A1CE52E00B42B25 /* HTMLLIElement.idl */,
    1175111760                                A871DC150A15205700B12A68 /* HTMLLinkElement.cpp */,
    1175211761                                A871DC140A15205700B12A68 /* HTMLLinkElement.h */,
     
    1177211781                                A8DF3FCD097FA0FB0052981B /* HTMLNameCollection.cpp */,
    1177311782                                A8DF3FCC097FA0FB0052981B /* HTMLNameCollection.h */,
     11783                                A871D4510A127CBC00B12A68 /* HTMLObjectElement.cpp */,
     11784                                A871D4500A127CBC00B12A68 /* HTMLObjectElement.h */,
     11785                                855542980AA4938800BA89F2 /* HTMLObjectElement.idl */,
    1177411786                                A8EA79EF0A1916DF00A8EF5F /* HTMLOListElement.cpp */,
    1177511787                                A8EA79E50A1916DF00A8EF5F /* HTMLOListElement.h */,
    1177611788                                1A85B1CB0A1B22DC00D8C87C /* HTMLOListElement.idl */,
    11777                                 A871D4510A127CBC00B12A68 /* HTMLObjectElement.cpp */,
    11778                                 A871D4500A127CBC00B12A68 /* HTMLObjectElement.h */,
    11779                                 855542980AA4938800BA89F2 /* HTMLObjectElement.idl */,
    1178011789                                A81369C3097374F500D74463 /* HTMLOptGroupElement.cpp */,
    1178111790                                A81369C2097374F500D74463 /* HTMLOptGroupElement.h */,
     
    1334613355                                E10B93C20B73C291003ED890 /* JSCustomXPathNSResolver.cpp */,
    1334713356                                E10B937B0B73C00A003ED890 /* JSCustomXPathNSResolver.h */,
     13357                                BCBCAE3A0FF19399000762AE /* JSDataGridDataSource.cpp */,
     13358                                BCBCAE3B0FF19399000762AE /* JSDataGridDataSource.h */,
    1334813359                                93B70D4709EB0C7C009D8468 /* JSDOMBinding.cpp */,
    1334913360                                93B70D4809EB0C7C009D8468 /* JSDOMBinding.h */,
     
    1347913490                        children = (
    1348013491                                BC2ED6BB0C6BD2F000920BFF /* JSAttrCustom.cpp */,
     13492                                1A9EF4560A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp */,
    1348113493                                93BA59B10F2AA5FE008E8E99 /* JSCDATASectionCustom.cpp */,
     13494                                BCA83E510D7CE205003421A8 /* JSClipboardCustom.cpp */,
     13495                                C0DFC86F0DB6841A003EAE7C /* JSConsoleCustom.cpp */,
     13496                                FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */,
    1348213497                                BC46C1ED0C0DDBDF0020CFC3 /* JSCSSRuleCustom.cpp */,
    1348313498                                BC5825F20C0B89380053F1B5 /* JSCSSStyleDeclarationCustom.cpp */,
    1348413499                                BC20FB7E0C0E8E6C00D1447F /* JSCSSValueCustom.cpp */,
    13485                                 1A9EF4560A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp */,
    13486                                 BCA83E510D7CE205003421A8 /* JSClipboardCustom.cpp */,
    13487                                 C0DFC86F0DB6841A003EAE7C /* JSConsoleCustom.cpp */,
    13488                                 FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */,
    1348913500                                FE80D7A20E9C1ED2000D6F75 /* JSCustomPositionCallback.cpp */,
    1349013501                                FE80D7A30E9C1ED2000D6F75 /* JSCustomPositionCallback.h */,
     
    1350113512                                1A3417C80CECFF250049CBDE /* JSCustomVoidCallback.cpp */,
    1350213513                                1A3417C70CECFF250049CBDE /* JSCustomVoidCallback.h */,
     13514                                1AE830420CAB0ED1002237AE /* JSDatabaseCustom.cpp */,
     13515                                929264760B61FC7200B41D34 /* JSDocumentCustom.cpp */,
     13516                                BC1DEA4E0E268EB60083A73F /* JSDocumentFragmentCustom.cpp */,
    1350313517                                1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */,
    1350413518                                BCD9C25E0C17AA67005C90A2 /* JSDOMWindowCustom.cpp */,
    1350513519                                652FBBBB0DE27CB60001D386 /* JSDOMWindowCustom.h */,
    13506                                 1AE830420CAB0ED1002237AE /* JSDatabaseCustom.cpp */,
    13507                                 929264760B61FC7200B41D34 /* JSDocumentCustom.cpp */,
    13508                                 BC1DEA4E0E268EB60083A73F /* JSDocumentFragmentCustom.cpp */,
    1350913520                                BC2ED5540C6B9BD300920BFF /* JSElementCustom.cpp */,
    1351013521                                BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */,
    1351113522                                FE80D7A60E9C1ED2000D6F75 /* JSGeolocationCustom.cpp */,
     13523                                BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */,
    1351213524                                BC4EDEF30C08F3FB007EDD49 /* JSHTMLAppletElementCustom.cpp */,
    1351313525                                BCCBAD3A0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp */,
     13526                                BCBCAE530FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp */,
    1351413527                                BC51580A0C03D404008BB0EE /* JSHTMLDocumentCustom.cpp */,
    1351513528                                BC5823F40C0A98DF0053F1B5 /* JSHTMLElementCustom.cpp */,
     
    1352413537                                BC17F9650B64EBB8004A65CB /* JSHTMLSelectElementCustom.cpp */,
    1352513538                                AB4CB4EA0B8BDA3D009F40B0 /* JSHTMLSelectElementCustom.h */,
    13526                                 BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */,
    1352713539                                A7D0318D0E93540300E24ACD /* JSImageDataCustom.cpp */,
    1352813540                                41F061690F5EFBDD00A07EAC /* JSInspectorControllerCustom.cpp */,
     
    1354213554                                51DCE8010CAC9F1C00488358 /* JSSQLResultSetRowListCustom.cpp */,
    1354313555                                1AD2316D0CD269E700C1F194 /* JSSQLTransactionCustom.cpp */,
     13556                                51D0C5150DAA90B7003B3831 /* JSStorageCustom.cpp */,
     13557                                BC98A27C0C0C9950004BEBF7 /* JSStyleSheetCustom.cpp */,
     13558                                A84EBD770CB8C89200079609 /* JSStyleSheetListCustom.cpp */,
    1354413559                                08A48A6D0E86CF6D00E225DD /* JSSVGElementInstanceCustom.cpp */,
    1354513560                                08E4FE450E2BD41400F4CAE0 /* JSSVGLengthCustom.cpp */,
     
    1354913564                                516BB7910CE91E6800512F79 /* JSSVGPointListCustom.cpp */,
    1355013565                                B2D3FC890C2212CB00CF3618 /* JSSVGTransformListCustom.cpp */,
    13551                                 51D0C5150DAA90B7003B3831 /* JSStorageCustom.cpp */,
    13552                                 BC98A27C0C0C9950004BEBF7 /* JSStyleSheetCustom.cpp */,
    13553                                 A84EBD770CB8C89200079609 /* JSStyleSheetListCustom.cpp */,
    1355413566                                1A2C40AA0DEB55AA005AF19E /* JSTextCustom.cpp */,
    1355513567                                516BB7920CE91E6800512F79 /* JSTreeWalkerCustom.cpp */,
     
    1686716879                                BC77CDCF0FEFF33B0070887B /* JSHTMLDataGridCellElement.h in Headers */,
    1686816880                                BC77CEB30FF017F20070887B /* RenderDataGrid.h in Headers */,
     16881                                BCBCAE370FF19385000762AE /* DataGridDataSource.h in Headers */,
     16882                                BCBCAE3D0FF19399000762AE /* JSDataGridDataSource.h in Headers */,
    1686916883                        );
    1687016884                        runOnlyForDeploymentPostprocessing = 0;
     
    1887318887                                BC77CDCE0FEFF33B0070887B /* JSHTMLDataGridCellElement.cpp in Sources */,
    1887418888                                BC77CEC80FF01CBE0070887B /* RenderDataGrid.cpp in Sources */,
     18889                                BCBCAE3C0FF19399000762AE /* JSDataGridDataSource.cpp in Sources */,
     18890                                BCBCAE540FF1A29E000762AE /* JSHTMLDataGridElementCustom.cpp in Sources */,
    1887518891                        );
    1887618892                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/WebCore/WebCoreSources.bkl

    r44964 r45018  
    7272        bindings/js/JSCustomXPathNSResolver.cpp
    7373        bindings/js/JSDatabaseCustom.cpp
     74        bindings/js/JSDataGridDataSource.cpp
    7475        bindings/js/JSDOMApplicationCacheCustom.cpp
    7576        bindings/js/JSDOMGlobalObject.cpp
     
    8788        bindings/js/JSHTMLAppletElementCustom.cpp
    8889        bindings/js/JSHTMLCollectionCustom.cpp
     90        bindings/js/JSHTMLDataGridElementCustom.cpp
    8991        bindings/js/JSHTMLDocumentCustom.cpp
    9092        bindings/js/JSHTMLElementCustom.cpp
  • trunk/WebCore/html/HTMLDataGridElement.cpp

    r44964 r45018  
    3535using namespace HTMLNames;
    3636
    37 HTMLDataGridElement::HTMLDataGridElement(const QualifiedName& name, Document* doc)
    38     : HTMLElement(name, doc)
     37HTMLDataGridElement::HTMLDataGridElement(const QualifiedName& tagName, Document* document)
     38    : HTMLElement(tagName, document)
     39    , m_initializationTimer(this, &HTMLDataGridElement::initializationTimerFired)
     40{
     41}
     42
     43HTMLDataGridElement::~HTMLDataGridElement()
    3944{
    4045}
     
    8287}
    8388
     89void 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);
    8496}
     97
     98void HTMLDataGridElement::initializationTimerFired(Timer<HTMLDataGridElement>*)
     99{
     100    m_dataSource->initialize(this);
     101}
     102
     103} // namespace WebCore
  • trunk/WebCore/html/HTMLDataGridElement.h

    r44964 r45018  
    2727#define HTMLDataGridElement_h
    2828
     29#include "DataGridDataSource.h"
    2930#include "HTMLElement.h"
     31#include "Timer.h"
    3032
    3133namespace WebCore {
    3234
    33 class HTMLDataGridElement : public HTMLElement
    34 {
     35class HTMLDataGridElement : public HTMLElement {
    3536public:
    3637    HTMLDataGridElement(const QualifiedName&, Document*);
    37    
     38    virtual ~HTMLDataGridElement();
     39
    3840    virtual int tagPriority() const { return 6; } // Same as <select>s
    3941    virtual bool checkDTD(const Node*);
     
    4951    bool multiple() const;
    5052    void setMultiple(bool);
     53
     54    void setDataSource(PassRefPtr<DataGridDataSource>);
     55    DataGridDataSource* dataSource() const { return m_dataSource.get(); }
     56
     57private:
     58    void initializationTimerFired(Timer<HTMLDataGridElement>*);
     59
     60    Timer<HTMLDataGridElement> m_initializationTimer;
     61    RefPtr<DataGridDataSource> m_dataSource;
    5162};
    5263
    53 } //namespace
     64} // namespace WebCore
    5465
    55 #endif
     66#endif // HTMLDataGridElement_h
  • trunk/WebCore/html/HTMLDataGridElement.idl

    r44964 r45018  
    2626module html {
    2727
    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    };
    3337
    3438}
Note: See TracChangeset for help on using the changeset viewer.