Changeset 49998 in webkit
- Timestamp:
- Oct 23, 2009 2:12:03 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 3 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49995 r49998 1 2009-10-23 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 Update and add test for https://bugs.webkit.org/show_bug.cgi?id=30695 6 Drop .tags() support from HTMLCollection 7 8 * fast/dom/HTMLDocument/document-all-expected.txt: Added. 9 * fast/dom/HTMLDocument/document-all.html: Added. 10 * fast/dom/HTMLDocument/script-tests: Added. 11 * fast/dom/HTMLDocument/script-tests/document-all.js: Added. 12 * fast/dom/Window/window-properties-expected.txt: 13 * fast/dom/dom-constructors-expected.txt: 14 * fast/dom/dom-constructors.html: 15 * fast/dom/domListEnumeration-expected.txt: 16 * fast/dom/prototype-inheritance-2-expected.txt: 17 * fast/dom/prototype-inheritance-expected.txt: 18 * fast/dom/script-tests/domListEnumeration.js: 19 * fast/dom/undetectable-document-all-expected.txt: 20 * fast/js/global-constructors-expected.txt: 21 1 22 2009-10-23 Alpha Lam <hclam@chromium.org> 2 23 -
trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt
r49489 r49998 900 900 window.FileList.prototype [object FileListPrototype] 901 901 window.FileList.prototype.item [function] 902 window.HTMLAllCollection [object HTMLAllCollectionConstructor] 903 window.HTMLAllCollection.prototype [object HTMLAllCollectionPrototype] 904 window.HTMLAllCollection.prototype.item [function] 905 window.HTMLAllCollection.prototype.namedItem [function] 906 window.HTMLAllCollection.prototype.tags [function] 902 907 window.HTMLAnchorElement [object HTMLAnchorElementConstructor] 903 908 window.HTMLAnchorElement.prototype [printed above as window.Element.prototype] … … 926 931 window.HTMLCollection.prototype.item [function] 927 932 window.HTMLCollection.prototype.namedItem [function] 928 window.HTMLCollection.prototype.tags [function]929 933 window.HTMLDListElement [object HTMLDListElementConstructor] 930 934 window.HTMLDListElement.prototype [printed above as window.Element.prototype] -
trunk/LayoutTests/fast/dom/dom-constructors-expected.txt
r46211 r49998 19 19 PASS TryAllocate('ProcessingInstruction') is 'exception' 20 20 PASS TryAllocate('Text') is 'exception' 21 PASS TryAllocate('HTMLAllCollection') is 'exception' 21 22 PASS TryAllocate('HTMLAnchorElement') is 'exception' 22 23 PASS TryAllocate('HTMLAppletElement') is 'exception' … … 137 138 PASS TryAllocate('EventListener') is 'no constructor' 138 139 PASS TryAllocate('NPObject') is 'no constructor' 139 PASS TryAllocate('HTMLAllCollection') is 'no constructor'140 140 PASS TryAllocate('DOMParser') is '[object DOMParser]' 141 141 PASS TryAllocate('DOMParser') is '[object DOMParser]' -
trunk/LayoutTests/fast/dom/dom-constructors.html
r42428 r49998 20 20 'DocumentFragment', 'DocumentType', 'Element', 'Entity', 21 21 'EntityReference', 'HTMLDocument', 'Node', 'Notation', 22 'ProcessingInstruction', 'Text', 'HTMLA nchorElement',22 'ProcessingInstruction', 'Text', 'HTMLAllCollection', 'HTMLAnchorElement', 23 23 'HTMLAppletElement', 'HTMLAreaElement', 'HTMLBaseElement', 24 24 'HTMLBaseFontElement', 'HTMLBlockquoteElement', 'HTMLBodyElement', … … 66 66 var objects_no_constructor = [ 67 67 'EventTargetNode', 'UndetectableHTMLCollection', 68 'XPathNSResolver', 'EventTarget', 'EventListener', 'NPObject', 69 'HTMLAllCollection' 68 'XPathNSResolver', 'EventTarget', 'EventListener', 'NPObject' 70 69 ]; 71 70 -
trunk/LayoutTests/fast/dom/domListEnumeration-expected.txt
r48723 r49998 15 15 16 16 [object HTMLCollection] 17 PASS resultArray.length is 717 PASS resultArray.length is 6 18 18 PASS resultArray[0].i is '0' 19 19 PASS resultArray[0].item is htmlCollection.item(0) -
trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
r49489 r49998 221 221 Never found File 222 222 Never found FileList 223 Never found HTMLAllCollection 223 224 Never found HTMLBaseElement 224 225 Never found HTMLBaseFontElement -
trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt
r49489 r49998 86 86 PASS inner.FileList.isInner is true 87 87 PASS inner.FileList.constructor.isInner is true 88 PASS inner.HTMLAllCollection.isInner is true 89 PASS inner.HTMLAllCollection.constructor.isInner is true 88 90 PASS inner.HTMLAnchorElement.isInner is true 89 91 PASS inner.HTMLAnchorElement.constructor.isInner is true -
trunk/LayoutTests/fast/dom/script-tests/domListEnumeration.js
r48723 r49998 109 109 var htmlCollection = document.forms; 110 110 resultArray = iterateList(htmlCollection); 111 shouldBe("resultArray.length", " 7");111 shouldBe("resultArray.length", "6"); 112 112 shouldBe("resultArray[0].i", "'0'"); 113 113 shouldBe("resultArray[0].item", "htmlCollection.item(0)"); -
trunk/LayoutTests/fast/dom/undetectable-document-all-expected.txt
r20145 r49998 1 1 This tests that document.all should be undetectable, and that it should be possible to set document.all to something else. If this test is successful, the text "SUCCESS" should be shown below. 2 document.all: [object HTML Collection]2 document.all: [object HTMLAllCollection] 3 3 SUCCESS! 4 4 -
trunk/LayoutTests/fast/js/global-constructors-expected.txt
r49489 r49998 43 43 PASS File.toString() is '[object FileConstructor]' 44 44 PASS FileList.toString() is '[object FileListConstructor]' 45 PASS HTMLAllCollection.toString() is '[object HTMLAllCollectionConstructor]' 45 46 PASS HTMLAnchorElement.toString() is '[object HTMLAnchorElementConstructor]' 46 47 PASS HTMLAppletElement.toString() is '[object HTMLAppletElementConstructor]' -
trunk/WebCore/ChangeLog
r49997 r49998 1 2009-10-23 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Anders Carlsson. 4 5 Fix for https://bugs.webkit.org/show_bug.cgi?id=30695 6 Drop .tags() support from HTMLCollection 7 8 - Make .tags() only work for HTMLAllCollections in JS. .tags() is still 9 available for all HTMLCollection like objects in Objective-C since that 10 is API. 11 - Auto-generate HTMLAllCollection. 12 13 Test: fast/dom/HTMLDocument/document-all.html 14 15 * DerivedSources.make: 16 * GNUmakefile.am: 17 * WebCore.gypi: 18 * WebCore.pro: 19 * WebCore.vcproj/WebCore.vcproj: 20 * WebCore.xcodeproj/project.pbxproj: 21 * bindings/js/JSHTMLAllCollection.cpp: Removed. 22 * bindings/js/JSHTMLAllCollection.h: Removed. 23 * bindings/js/JSHTMLAllCollectionCustom.cpp: Added. 24 (WebCore::getNamedItems): 25 (WebCore::callHTMLAllCollection): 26 (WebCore::JSHTMLAllCollection::getCallData): 27 (WebCore::JSHTMLAllCollection::canGetItemsForName): 28 (WebCore::JSHTMLAllCollection::nameGetter): 29 (WebCore::JSHTMLAllCollection::item): 30 (WebCore::JSHTMLAllCollection::namedItem): 31 * bindings/js/JSHTMLCollectionCustom.cpp: 32 (WebCore::toJS): 33 * bindings/js/JSHTMLDocumentCustom.cpp: 34 * bindings/scripts/CodeGeneratorJS.pm: 35 * dom/Document.cpp: 36 (WebCore::Document::all): 37 * dom/Document.h: 38 * dom/HTMLAllCollection.idl: Removed. 39 * html/HTMLAllCollection.cpp: Added. 40 (WebCore::HTMLAllCollection::create): 41 (WebCore::HTMLAllCollection::HTMLAllCollection): 42 (WebCore::HTMLAllCollection::~HTMLAllCollection): 43 * html/HTMLAllCollection.h: Added. 44 * html/HTMLAllCollection.idl: Added. 45 * html/HTMLCollection.h: 46 * html/HTMLCollection.idl: 47 * html/HTMLDocument.idl: 48 * page/DOMWindow.idl: 49 1 50 2009-10-23 Pavel Feldman <pfeldman@chromium.org> 2 51 -
trunk/WebCore/DerivedSources.make
r49420 r49998 127 127 Geolocation \ 128 128 Geoposition \ 129 HTMLAllCollection \ 129 130 HTMLAnchorElement \ 130 131 HTMLAppletElement \ -
trunk/WebCore/GNUmakefile.am
r49778 r49998 170 170 WebCore/html/File.idl \ 171 171 WebCore/html/FileList.idl \ 172 WebCore/html/HTMLAllCollection.idl \ 172 173 WebCore/html/HTMLAnchorElement.idl \ 173 174 WebCore/html/HTMLAppletElement.idl \ … … 371 372 WebCore/bindings/js/JSExceptionBase.h \ 372 373 WebCore/bindings/js/JSGeolocationCustom.cpp \ 373 WebCore/bindings/js/JSHTMLAllCollection.cpp \ 374 WebCore/bindings/js/JSHTMLAllCollection.h \ 375 WebCore/bindings/js/JSHTMLAppletElementCustom.cpp \ 374 WebCore/bindings/js/JSHTMLAllCollectionCustom.cpp \ 375 WebCore/bindings/js/JSHTMLAppletElementCustom.cpp \ 376 376 WebCore/bindings/js/JSHTMLAppletElementCustom.h \ 377 377 WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp \ … … 961 961 WebCore/html/FormDataList.cpp \ 962 962 WebCore/html/FormDataList.h \ 963 WebCore/html/HTMLAllCollection.cpp \ 964 WebCore/html/HTMLAllCollection.h \ 963 965 WebCore/html/HTMLAnchorElement.cpp \ 964 966 WebCore/html/HTMLAnchorElement.h \ -
trunk/WebCore/WebCore.gypi
r49989 r49998 52 52 'dom/EventListener.idl', 53 53 'dom/EventTarget.idl', 54 'dom/HTMLAllCollection.idl',55 54 'dom/KeyboardEvent.idl', 56 55 'dom/MessageChannel.idl', … … 104 103 'html/File.idl', 105 104 'html/FileList.idl', 105 'html/HTMLAllCollection.idl', 106 106 'html/HTMLAnchorElement.idl', 107 107 'html/HTMLAppletElement.idl', … … 492 492 'bindings/js/JSHistoryCustom.cpp', 493 493 'bindings/js/JSHistoryCustom.h', 494 'bindings/js/JSHTMLAllCollection.cpp', 495 'bindings/js/JSHTMLAllCollection.h', 494 'bindings/js/JSHTMLAllCollectionCustom.cpp', 496 495 'bindings/js/JSHTMLAppletElementCustom.cpp', 497 496 'bindings/js/JSHTMLAppletElementCustom.h', … … 1328 1327 'html/FormDataList.cpp', 1329 1328 'html/FormDataList.h', 1329 'html/HTMLAllCollection.cpp', 1330 'html/HTMLAllCollection.h', 1330 1331 'html/HTMLAnchorElement.cpp', 1331 1332 'html/HTMLAnchorElement.h', -
trunk/WebCore/WebCore.pro
r49986 r49998 395 395 html/File.idl \ 396 396 html/FileList.idl \ 397 html/HTMLAllCollection.idl \ 397 398 html/HTMLAudioElement.idl \ 398 399 html/HTMLAnchorElement.idl \ … … 704 705 bindings/js/JSExceptionBase.cpp \ 705 706 bindings/js/JSGeolocationCustom.cpp \ 706 bindings/js/JSHTMLAllCollection.cpp \707 707 bindings/js/JSHistoryCustom.cpp \ 708 708 bindings/js/JSHTMLAppletElementCustom.cpp \ 709 709 bindings/js/JSHTMLCanvasElementCustom.cpp \ 710 bindings/js/JSHTMLAllCollectionCustom.cpp \ 710 711 bindings/js/JSHTMLCollectionCustom.cpp \ 711 712 bindings/js/JSHTMLDataGridElementCustom.cpp \ … … 991 992 html/FileList.cpp \ 992 993 html/FormDataList.cpp \ 994 html/HTMLAllCollection.cpp \ 993 995 html/HTMLAnchorElement.cpp \ 994 996 html/HTMLAppletElement.cpp \ … … 1404 1406 bindings/js/JSEventTarget.h \ 1405 1407 bindings/js/JSHistoryCustom.h \ 1406 bindings/js/JSHTMLAllCollection.h \1407 1408 bindings/js/JSHTMLAppletElementCustom.h \ 1408 1409 bindings/js/JSHTMLEmbedElementCustom.h \ … … 1665 1666 html/FileList.h \ 1666 1667 html/FormDataList.h \ 1668 html/HTMLAllCollection.h \ 1667 1669 html/HTMLAnchorElement.h \ 1668 1670 html/HTMLAppletElement.h \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r49970 r49998 4307 4307 <File 4308 4308 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLCanvasElement.h" 4309 > 4310 </File> 4311 <File 4312 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLAllCollection.cpp" 4313 > 4314 <FileConfiguration 4315 Name="Debug|Win32" 4316 ExcludedFromBuild="true" 4317 > 4318 <Tool 4319 Name="VCCLCompilerTool" 4320 /> 4321 </FileConfiguration> 4322 <FileConfiguration 4323 Name="Release|Win32" 4324 ExcludedFromBuild="true" 4325 > 4326 <Tool 4327 Name="VCCLCompilerTool" 4328 /> 4329 </FileConfiguration> 4330 <FileConfiguration 4331 Name="Debug_Internal|Win32" 4332 ExcludedFromBuild="true" 4333 > 4334 <Tool 4335 Name="VCCLCompilerTool" 4336 /> 4337 </FileConfiguration> 4338 <FileConfiguration 4339 Name="Debug_Cairo|Win32" 4340 ExcludedFromBuild="true" 4341 > 4342 <Tool 4343 Name="VCCLCompilerTool" 4344 /> 4345 </FileConfiguration> 4346 <FileConfiguration 4347 Name="Release_Cairo|Win32" 4348 ExcludedFromBuild="true" 4349 > 4350 <Tool 4351 Name="VCCLCompilerTool" 4352 /> 4353 </FileConfiguration> 4354 <FileConfiguration 4355 Name="Debug_All|Win32" 4356 ExcludedFromBuild="true" 4357 > 4358 <Tool 4359 Name="VCCLCompilerTool" 4360 /> 4361 </FileConfiguration> 4362 </File> 4363 <File 4364 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLAllCollection.h" 4309 4365 > 4310 4366 </File> … … 30012 30068 </File> 30013 30069 <File 30070 RelativePath="..\html\HTMLAllCollection.cpp" 30071 > 30072 </File> 30073 <File 30074 RelativePath="..\html\HTMLAllCollection.h" 30075 > 30076 </File> 30077 <File 30014 30078 RelativePath="..\html\HTMLCollection.cpp" 30015 30079 > … … 33859 33923 </File> 33860 33924 <File 33861 RelativePath="..\bindings\js\JSHTMLAllCollection.cpp"33862 >33863 </File>33864 <File33865 RelativePath="..\bindings\js\JSHTMLAllCollection.h"33866 >33867 </File>33868 <File33869 33925 RelativePath="..\bindings\js\JSHTMLAppletElementCustom.cpp" 33870 33926 > … … 33872 33928 <File 33873 33929 RelativePath="..\bindings\js\JSHTMLCanvasElementCustom.cpp" 33930 > 33931 </File> 33932 <File 33933 RelativePath="..\bindings\js\JSHTMLAllCollectionCustom.cpp" 33874 33934 > 33875 33935 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r49778 r49998 2209 2209 934F71440D5A6F5300018D69 /* AuthenticationChallenge.h in Headers */ = {isa = PBXBuildFile; fileRef = 934F71430D5A6F5300018D69 /* AuthenticationChallenge.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2210 2210 934FE9E50B5CA539003E4A73 /* FileChooser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 934FE9E40B5CA539003E4A73 /* FileChooser.cpp */; }; 2211 9350E70D0E87500B00189FFF /* JSHTMLAllCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9350E70C0E87500B00189FFF /* JSHTMLAllCollection.cpp */; };2212 2211 9352071909BD3BA500F2038D /* StaticConstructors.h in Headers */ = {isa = PBXBuildFile; fileRef = 9352071709BD3BA500F2038D /* StaticConstructors.h */; }; 2213 2212 935207BE09BD410A00F2038D /* LocalizedStrings.h in Headers */ = {isa = PBXBuildFile; fileRef = 935207BD09BD410A00F2038D /* LocalizedStrings.h */; }; … … 4250 4249 BC6DADEF0A195FDF00E5CD14 /* WebFontCache.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6DADEE0A195FDF00E5CD14 /* WebFontCache.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4251 4250 BC6DADFA0A19602B00E5CD14 /* WebFontCache.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC6DADF90A19602B00E5CD14 /* WebFontCache.mm */; }; 4252 BC6DC7A10C1A4BFA004E2017 /* JSHTMLAllCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6DC7A00C1A4BFA004E2017 /* JSHTMLAllCollection.h */; };4253 4251 BC74DA371013F3F7007987AD /* RGBColor.h in Headers */ = {isa = PBXBuildFile; fileRef = BC74DA351013F3F7007987AD /* RGBColor.h */; }; 4254 4252 BC74DA381013F3F7007987AD /* RGBColor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC74DA361013F3F7007987AD /* RGBColor.cpp */; }; … … 4328 4326 BC96DB430F3A880E00573CB3 /* RenderBoxModelObject.h in Headers */ = {isa = PBXBuildFile; fileRef = BC96DB420F3A880E00573CB3 /* RenderBoxModelObject.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4329 4327 BC96DB460F3A882200573CB3 /* RenderBoxModelObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC96DB450F3A882200573CB3 /* RenderBoxModelObject.cpp */; }; 4328 BC97E23A109144950010D361 /* HTMLAllCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = BC97E238109144950010D361 /* HTMLAllCollection.h */; }; 4329 BC97E23B109144950010D361 /* HTMLAllCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC97E239109144950010D361 /* HTMLAllCollection.cpp */; }; 4330 BC97E412109154FA0010D361 /* JSHTMLAllCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC97E410109154FA0010D361 /* JSHTMLAllCollection.cpp */; }; 4331 BC97E413109154FA0010D361 /* JSHTMLAllCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = BC97E411109154FA0010D361 /* JSHTMLAllCollection.h */; }; 4332 BC97E42C10915B060010D361 /* JSHTMLAllCollectionCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC97E42B10915B060010D361 /* JSHTMLAllCollectionCustom.cpp */; }; 4330 4333 BC98543D0CD3D98B00069BC1 /* JSConsole.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC98543B0CD3D98B00069BC1 /* JSConsole.cpp */; }; 4331 4334 BC98543E0CD3D98C00069BC1 /* JSConsole.h in Headers */ = {isa = PBXBuildFile; fileRef = BC98543C0CD3D98B00069BC1 /* JSConsole.h */; }; … … 7451 7454 934F71430D5A6F5300018D69 /* AuthenticationChallenge.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AuthenticationChallenge.h; sourceTree = "<group>"; }; 7452 7455 934FE9E40B5CA539003E4A73 /* FileChooser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FileChooser.cpp; sourceTree = "<group>"; }; 7453 9350E70C0E87500B00189FFF /* JSHTMLAllCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLAllCollection.cpp; sourceTree = "<group>"; };7454 7456 9352071709BD3BA500F2038D /* StaticConstructors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StaticConstructors.h; sourceTree = "<group>"; }; 7455 7457 935207BD09BD410A00F2038D /* LocalizedStrings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalizedStrings.h; sourceTree = "<group>"; }; … … 9374 9376 BC6DADEE0A195FDF00E5CD14 /* WebFontCache.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebFontCache.h; sourceTree = "<group>"; }; 9375 9377 BC6DADF90A19602B00E5CD14 /* WebFontCache.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = WebFontCache.mm; sourceTree = "<group>"; }; 9376 BC6DC7A00C1A4BFA004E2017 /* JSHTMLAllCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLAllCollection.h; sourceTree = "<group>"; };9377 9378 BC74DA351013F3F7007987AD /* RGBColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RGBColor.h; sourceTree = "<group>"; }; 9378 9379 BC74DA361013F3F7007987AD /* RGBColor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RGBColor.cpp; sourceTree = "<group>"; }; … … 9459 9460 BC96DB420F3A880E00573CB3 /* RenderBoxModelObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderBoxModelObject.h; sourceTree = "<group>"; }; 9460 9461 BC96DB450F3A882200573CB3 /* RenderBoxModelObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderBoxModelObject.cpp; sourceTree = "<group>"; }; 9462 BC97E238109144950010D361 /* HTMLAllCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLAllCollection.h; sourceTree = "<group>"; }; 9463 BC97E239109144950010D361 /* HTMLAllCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLAllCollection.cpp; sourceTree = "<group>"; }; 9464 BC97E23C109146F10010D361 /* HTMLAllCollection.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLAllCollection.idl; sourceTree = "<group>"; }; 9465 BC97E410109154FA0010D361 /* JSHTMLAllCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLAllCollection.cpp; sourceTree = "<group>"; }; 9466 BC97E411109154FA0010D361 /* JSHTMLAllCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLAllCollection.h; sourceTree = "<group>"; }; 9467 BC97E42B10915B060010D361 /* JSHTMLAllCollectionCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLAllCollectionCustom.cpp; sourceTree = "<group>"; }; 9461 9468 BC98543B0CD3D98B00069BC1 /* JSConsole.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSConsole.cpp; sourceTree = "<group>"; }; 9462 9469 BC98543C0CD3D98B00069BC1 /* JSConsole.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSConsole.h; sourceTree = "<group>"; }; … … 12496 12503 A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */, 12497 12504 85DF2F690AA3C74300AD64C5 /* HTMLCollection.idl */, 12505 BC97E23C109146F10010D361 /* HTMLAllCollection.idl */, 12506 BC97E238109144950010D361 /* HTMLAllCollection.h */, 12507 BC97E239109144950010D361 /* HTMLAllCollection.cpp */, 12498 12508 BC77CDB70FEFF1210070887B /* HTMLDataGridCellElement.cpp */, 12499 12509 BC77CDBB0FEFF1420070887B /* HTMLDataGridCellElement.h */, … … 12799 12809 BC00F0120E0A189500FD04E3 /* JSFileList.cpp */, 12800 12810 BC00F0130E0A189500FD04E3 /* JSFileList.h */, 12811 BC97E410109154FA0010D361 /* JSHTMLAllCollection.cpp */, 12812 BC97E411109154FA0010D361 /* JSHTMLAllCollection.h */, 12801 12813 1A4A2DEB0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp */, 12802 12814 1A4A2DEC0A1B852A00C807F8 /* JSHTMLAnchorElement.h */, … … 14476 14488 BCDFD4910E3056BD009D10AD /* JSXMLHttpRequestUploadCustom.cpp */, 14477 14489 BCEFE1E40DCA5F3300739219 /* JSXSLTProcessorCustom.cpp */, 14490 BC97E42B10915B060010D361 /* JSHTMLAllCollectionCustom.cpp */, 14478 14491 ); 14479 14492 name = Custom; … … 14757 14770 E0FEF371B77C53EAC1C1FBEE /* JSEventSourceConstructor.cpp */, 14758 14771 E0FEF371B67C53EAC1C1FBEE /* JSEventSourceConstructor.h */, 14759 9350E70C0E87500B00189FFF /* JSHTMLAllCollection.cpp */,14760 BC6DC7A00C1A4BFA004E2017 /* JSHTMLAllCollection.h */,14761 14772 BC6C49F10D7DBA0500FFA558 /* JSImageConstructor.cpp */, 14762 14773 BC6C49F20D7DBA0500FFA558 /* JSImageConstructor.h */, … … 17000 17011 FE80DA660E9C4703000D6F75 /* JSGeoposition.h in Headers */, 17001 17012 BC94D14F0C275C68006BC617 /* JSHistory.h in Headers */, 17002 BC6DC7A10C1A4BFA004E2017 /* JSHTMLAllCollection.h in Headers */,17003 17013 1A4A2DF00A1B852A00C807F8 /* JSHTMLAnchorElement.h in Headers */, 17004 17014 1A4A2DF20A1B852A00C807F8 /* JSHTMLAppletElement.h in Headers */, … … 18064 18074 973E325710883B7C005BC493 /* ResourceLoadNotifier.h in Headers */, 18065 18075 84801955108BAFB300CB2B1F /* FEGaussianBlur.h in Headers */, 18076 BC97E23A109144950010D361 /* HTMLAllCollection.h in Headers */, 18077 BC97E413109154FA0010D361 /* JSHTMLAllCollection.h in Headers */, 18066 18078 ); 18067 18079 runOnlyForDeploymentPostprocessing = 0; … … 19169 19181 BC94D14E0C275C68006BC617 /* JSHistory.cpp in Sources */, 19170 19182 BCE7B1930D4E86960075A539 /* JSHistoryCustom.cpp in Sources */, 19171 9350E70D0E87500B00189FFF /* JSHTMLAllCollection.cpp in Sources */,19172 19183 1A4A2DEF0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp in Sources */, 19173 19184 1A4A2DF10A1B852A00C807F8 /* JSHTMLAppletElement.cpp in Sources */, … … 20198 20209 973E325610883B7C005BC493 /* ResourceLoadNotifier.cpp in Sources */, 20199 20210 84801954108BAFB300CB2B1F /* FEGaussianBlur.cpp in Sources */, 20211 BC97E23B109144950010D361 /* HTMLAllCollection.cpp in Sources */, 20212 BC97E412109154FA0010D361 /* JSHTMLAllCollection.cpp in Sources */, 20213 BC97E42C10915B060010D361 /* JSHTMLAllCollectionCustom.cpp in Sources */, 20200 20214 ); 20201 20215 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/bindings/js/JSHTMLCollectionCustom.cpp
r48595 r49998 24 24 #include "HTMLCollection.h" 25 25 #include "HTMLOptionsCollection.h" 26 #include "HTMLAllCollection.h" 26 27 #include "JSDOMBinding.h" 27 28 #include "JSHTMLAllCollection.h" … … 144 145 break; 145 146 case DocAll: 146 typedef HTMLCollection HTMLAllCollection;147 147 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, HTMLAllCollection, collection); 148 148 break; -
trunk/WebCore/bindings/js/JSHTMLDocumentCustom.cpp
r49963 r49998 29 29 #include "CharacterNames.h" 30 30 #include "Frame.h" 31 #include "HTMLAllCollection.h" 31 32 #include "HTMLBodyElement.h" 32 33 #include "HTMLCollection.h" -
trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm
r49963 r49998 293 293 my @getOwnPropertySlotImpl = (); 294 294 295 if ($interfaceName eq "NamedNodeMap" or $interfaceName eq "HTMLCollection" ) {295 if ($interfaceName eq "NamedNodeMap" or $interfaceName eq "HTMLCollection" or $interfaceName eq "HTMLAllCollection") { 296 296 push(@getOwnPropertySlotImpl, " ${namespaceMaybe}JSValue proto = prototype();\n"); 297 297 push(@getOwnPropertySlotImpl, " if (proto.isObject() && static_cast<${namespaceMaybe}JSObject*>(asObject(proto))->hasProperty(exec, propertyName))\n"); … … 370 370 my @getOwnPropertyDescriptorImpl = (); 371 371 372 if ($interfaceName eq "NamedNodeMap" or $interfaceName eq "HTMLCollection" ) {372 if ($interfaceName eq "NamedNodeMap" or $interfaceName eq "HTMLCollection" or $interfaceName eq "HTMLAllCollection") { 373 373 push(@getOwnPropertyDescriptorImpl, " ${namespaceMaybe}JSValue proto = prototype();\n"); 374 374 push(@getOwnPropertyDescriptorImpl, " if (proto.isObject() && static_cast<${namespaceMaybe}JSObject*>(asObject(proto))->hasProperty(exec, propertyName))\n"); … … 658 658 # Custom lookupSetter function 659 659 push(@headerContent, " virtual JSC::JSValue lookupSetter(JSC::ExecState*, const JSC::Identifier& propertyName);\n") if $dataNode->extendedAttributes->{"CustomLookupSetter"}; 660 661 # Override toBoolean to return false for objects that want to 'MasqueradesAsUndefined'. 662 if ($dataNode->extendedAttributes->{"MasqueradesAsUndefined"}) { 663 push(@headerContent, " virtual bool toBoolean(JSC::ExecState*) const { return false; };\n"); 664 $structureFlags{"JSC::MasqueradesAsUndefined"} = 1; 665 } 660 666 661 667 # Constructor object getter … … 1703 1709 } 1704 1710 push(@implContent, "}\n"); 1705 if ($interfaceName eq "HTMLCollection" ) {1711 if ($interfaceName eq "HTMLCollection" or $interfaceName eq "HTMLAllCollection") { 1706 1712 $implIncludes{"JSNode.h"} = 1; 1707 1713 $implIncludes{"Node.h"} = 1; … … 1714 1720 push(@implContent, " return jsNumber(exec, static_cast<$implClassName*>(impl())->item(index));\n"); 1715 1721 push(@implContent, "}\n"); 1716 if ($interfaceName eq "HTMLCollection" ) {1722 if ($interfaceName eq "HTMLCollection" or $interfaceName eq "HTMLAllCollection") { 1717 1723 $implIncludes{"JSNode.h"} = 1; 1718 1724 $implIncludes{"Node.h"} = 1; -
trunk/WebCore/dom/Document.cpp
r49992 r49998 59 59 #include "FrameTree.h" 60 60 #include "FrameView.h" 61 #include "HTMLAllCollection.h" 61 62 #include "HTMLAnchorElement.h" 62 63 #include "HTMLBodyElement.h" … … 3999 4000 } 4000 4001 4001 PassRefPtr<HTML Collection> Document::all()4002 { 4003 return HTML Collection::create(this, DocAll);4002 PassRefPtr<HTMLAllCollection> Document::all() 4003 { 4004 return HTMLAllCollection::create(this); 4004 4005 } 4005 4006 -
trunk/WebCore/dom/Document.h
r49963 r49998 72 72 class HTMLCanvasElement; 73 73 class HTMLCollection; 74 class HTMLAllCollection; 74 75 class HTMLDocument; 75 76 class HTMLElement; … … 317 318 PassRefPtr<HTMLCollection> forms(); 318 319 PassRefPtr<HTMLCollection> anchors(); 319 PassRefPtr<HTMLCollection> all();320 320 PassRefPtr<HTMLCollection> objects(); 321 321 PassRefPtr<HTMLCollection> scripts(); 322 322 PassRefPtr<HTMLCollection> windowNamedItems(const String& name); 323 323 PassRefPtr<HTMLCollection> documentNamedItems(const String& name); 324 325 PassRefPtr<HTMLAllCollection> all(); 324 326 325 327 // Find first anchor with the given name. -
trunk/WebCore/html/HTMLCollection.h
r43198 r49998 65 65 protected: 66 66 HTMLCollection(PassRefPtr<Node> base, CollectionType, CollectionCache*); 67 HTMLCollection(PassRefPtr<Node> base, CollectionType); 67 68 68 69 CollectionCache* info() const { return m_info; } … … 72 73 73 74 private: 74 HTMLCollection(PassRefPtr<Node> base, CollectionType);75 76 75 virtual Element* itemAfter(Element*) const; 77 76 virtual unsigned calcLength() const; -
trunk/WebCore/html/HTMLCollection.idl
r42618 r49998 35 35 [Custom] Node namedItem(in DOMString name); 36 36 37 // Extensions 37 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 38 38 NodeList tags(in DOMString name); 39 #endif 39 40 }; 40 41 -
trunk/WebCore/html/HTMLDocument.idl
r43528 r49998 40 40 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT 41 41 // FIXME: This should eventually be available (if they are wanted) for all languages. 42 attribute [Custom, Deletable] HTML Collection all;42 attribute [Custom, Deletable] HTMLAllCollection all; 43 43 #endif 44 44 -
trunk/WebCore/page/DOMWindow.idl
r49989 r49998 427 427 428 428 attribute HTMLCollectionConstructor HTMLCollection; 429 attribute HTMLAllCollectionConstructor HTMLAllCollection; 429 430 430 431 attribute [CustomGetter] HTMLImageElementConstructor Image; // Usable with new operator
Note: See TracChangeset
for help on using the changeset viewer.