Changeset 184042 in webkit
- Timestamp:
- May 9, 2015, 8:22:21 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt (modified) (1 diff)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (10 diffs)
-
Source/WebCore/dom/CharacterData.idl (modified) (1 diff)
-
Source/WebCore/dom/Document.idl (modified) (2 diffs)
-
Source/WebCore/dom/DocumentFragment.idl (modified) (1 diff)
-
Source/WebCore/dom/Element.idl (modified) (2 diffs)
-
Source/WebCore/dom/NonDocumentTypeChildNode.idl (added)
-
Source/WebCore/dom/ParentNode.idl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r184038 r184042 1 2015-05-09 Chris Dumez <cdumez@apple.com> 2 3 Introduce ParentNode.idl / NonDocumentTypeChildNode.idl 4 https://bugs.webkit.org/show_bug.cgi?id=144825 5 6 Reviewed by Sam Weinig. 7 8 Rebaseline test as the order of the methods changed when iterating. 9 10 * js/dom/dom-static-property-for-in-iteration-expected.txt: 11 1 12 2015-05-08 Xabier Rodriguez Calvar <calvaris@igalia.com> and Youenn Fablet <youenn.fablet@crf.canon.fr> 2 13 -
trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt
r184036 r184042 66 66 PASS a["classList"] is 67 67 PASS a["dataset"] is [object DOMStringMap] 68 PASS a["uiactions"] is 69 PASS a["webkitRegionOverset"] is undefined 70 PASS a["previousElementSibling"] is [object HTMLDivElement] 71 PASS a["nextElementSibling"] is [object HTMLScriptElement] 68 72 PASS a["firstElementChild"] is null 69 73 PASS a["lastElementChild"] is null 70 74 PASS a["childElementCount"] is 0 71 PASS a["previousElementSibling"] is [object HTMLDivElement]72 PASS a["nextElementSibling"] is [object HTMLScriptElement]73 PASS a["uiactions"] is74 PASS a["webkitRegionOverset"] is undefined75 75 PASS a["ALLOW_KEYBOARD_INPUT"] is 1 76 76 PASS a["nodeName"] is A -
trunk/Source/WebCore/CMakeLists.txt
r183866 r184042 412 412 dom/NodeIterator.idl 413 413 dom/NodeList.idl 414 dom/NonDocumentTypeChildNode.idl 414 415 dom/OverflowEvent.idl 415 416 dom/PageTransitionEvent.idl 417 dom/ParentNode.idl 416 418 dom/PopStateEvent.idl 417 419 dom/ProcessingInstruction.idl -
trunk/Source/WebCore/ChangeLog
r184041 r184042 1 2015-05-09 Chris Dumez <cdumez@apple.com> 2 3 Introduce ParentNode.idl / NonDocumentTypeChildNode.idl 4 https://bugs.webkit.org/show_bug.cgi?id=144825 5 6 Reviewed by Sam Weinig. 7 8 Introduce ParentNode.idl / NonDocumentTypeChildNode.idl as per DOM 9 specification and to avoid IDL code duplication: 10 - https://dom.spec.whatwg.org/#interface-parentnode 11 - https://dom.spec.whatwg.org/#interface-nondocumenttypechildnode 12 13 No Web-Exposed behavior change. 14 15 * CMakeLists.txt: 16 * DerivedSources.make: 17 * WebCore.xcodeproj/project.pbxproj: 18 * dom/CharacterData.idl: 19 * dom/Document.idl: 20 * dom/DocumentFragment.idl: 21 * dom/Element.idl: 22 * dom/NonDocumentTypeChildNode.idl: Copied from Source/WebCore/dom/DocumentFragment.idl. 23 * dom/ParentNode.idl: Copied from Source/WebCore/dom/DocumentFragment.idl. 24 1 25 2015-05-09 Chris Dumez <cdumez@apple.com> 2 26 -
trunk/Source/WebCore/DerivedSources.make
r183697 r184042 300 300 $(WebCore)/dom/NodeIterator.idl \ 301 301 $(WebCore)/dom/NodeList.idl \ 302 $(WebCore)/dom/NonDocumentTypeChildNode.idl \ 302 303 $(WebCore)/dom/OverflowEvent.idl \ 303 304 $(WebCore)/dom/PageTransitionEvent.idl \ 305 $(WebCore)/dom/ParentNode.idl \ 304 306 $(WebCore)/dom/PopStateEvent.idl \ 305 307 $(WebCore)/dom/ProcessingInstruction.idl \ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r183940 r184042 1602 1602 44311F8212E4E66C000A8D19 /* DOMDocumentFragmentInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 85E711450AC5D5340053270F /* DOMDocumentFragmentInternal.h */; }; 1603 1603 443817FF1A91B2F8006E04F2 /* CoreMediaSoftLink.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 443817FD1A91B2F8006E04F2 /* CoreMediaSoftLink.cpp */; }; 1604 443917FF1A91B2F8006E04F2 /* QuickLookSoftLink.mm in Sources */ = {isa = PBXBuildFile; fileRef = 443917FD1A91B2F8006E04F2 /* QuickLookSoftLink.mm */; };1605 1604 443818001A91B2F8006E04F2 /* CoreMediaSoftLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 443817FE1A91B2F8006E04F2 /* CoreMediaSoftLink.h */; }; 1606 443918001A91B2F8006E04F2 /* QuickLookSoftLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 443917FE1A91B2F8006E04F2 /* QuickLookSoftLink.h */; }; 1605 443917FF1A91B2F8006E04F2 /* ios/QuickLookSoftLink.mm in Sources */ = {isa = PBXBuildFile; fileRef = 443917FD1A91B2F8006E04F2 /* ios/QuickLookSoftLink.mm */; }; 1606 443918001A91B2F8006E04F2 /* ios/QuickLookSoftLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 443917FE1A91B2F8006E04F2 /* ios/QuickLookSoftLink.h */; }; 1607 1607 443F04270E75C8FB007E5407 /* NetworkStateNotifierIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 443F04260E75C8FB007E5407 /* NetworkStateNotifierIOS.mm */; }; 1608 1608 4449A4051A964B0000B64AD5 /* CoreMediaSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 4449A4041A964B0000B64AD5 /* CoreMediaSPI.h */; }; … … 8773 8773 44311CD512E4E22D000A8D19 /* DOMDocumentPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMDocumentPrivate.h; sourceTree = "<group>"; }; 8774 8774 443817FD1A91B2F8006E04F2 /* CoreMediaSoftLink.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CoreMediaSoftLink.cpp; sourceTree = "<group>"; }; 8775 443917FD1A91B2F8006E04F2 /* QuickLookSoftLink.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ios/QuickLookSoftLink.mm; sourceTree = "<group>"; };8776 8775 443817FE1A91B2F8006E04F2 /* CoreMediaSoftLink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CoreMediaSoftLink.h; sourceTree = "<group>"; }; 8777 443917FE1A91B2F8006E04F2 /* QuickLookSoftLink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ios/QuickLookSoftLink.h; sourceTree = "<group>"; }; 8776 443917FD1A91B2F8006E04F2 /* ios/QuickLookSoftLink.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ios/QuickLookSoftLink.mm; sourceTree = "<group>"; }; 8777 443917FE1A91B2F8006E04F2 /* ios/QuickLookSoftLink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ios/QuickLookSoftLink.h; sourceTree = "<group>"; }; 8778 8778 443F04260E75C8FB007E5407 /* NetworkStateNotifierIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = NetworkStateNotifierIOS.mm; sourceTree = "<group>"; }; 8779 8779 4449A4041A964B0000B64AD5 /* CoreMediaSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CoreMediaSPI.h; sourceTree = "<group>"; }; … … 9922 9922 83520C7D1A71BFCC006BD2AA /* CSSFontFamily.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSFontFamily.h; sourceTree = "<group>"; }; 9923 9923 835D363619FF6193004C93AB /* StyleBuilderCustom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleBuilderCustom.h; sourceTree = "<group>"; }; 9924 8369E58F1AFDD0300087DF68 /* NonDocumentTypeChildNode.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = NonDocumentTypeChildNode.idl; sourceTree = "<group>"; }; 9924 9925 836FBCE9178C113200B21A15 /* SVGAnimatedTypeAnimator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAnimatedTypeAnimator.cpp; sourceTree = "<group>"; }; 9925 9926 836FBCEB178C117F00B21A15 /* SVGAnimatedProperty.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAnimatedProperty.cpp; sourceTree = "<group>"; }; … … 9950 9951 83C1D423178D5AB400141E68 /* SVGPathSegMovetoAbs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGPathSegMovetoAbs.h; sourceTree = "<group>"; }; 9951 9952 83C1D424178D5AB400141E68 /* SVGPathSegMovetoRel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGPathSegMovetoRel.h; sourceTree = "<group>"; }; 9953 83D26D3C1AFDCC50001B3873 /* ChildNode.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = ChildNode.idl; sourceTree = "<group>"; }; 9954 83D26D3D1AFDCC50001B3873 /* ParentNode.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = ParentNode.idl; sourceTree = "<group>"; }; 9952 9955 8419D2A4120D92D000141F8F /* SVGPathByteStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGPathByteStream.h; sourceTree = "<group>"; }; 9953 9956 8419D2A5120D92D000141F8F /* SVGPathByteStreamBuilder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGPathByteStreamBuilder.cpp; sourceTree = "<group>"; }; … … 18864 18867 E45390320EAFD637003695C8 /* PlatformScreenIOS.mm */, 18865 18868 AAE3755D17429BCC006200C2 /* PlatformSpeechSynthesizerIOS.mm */, 18866 443917FE1A91B2F8006E04F2 /* QuickLookSoftLink.h */,18867 443917FD1A91B2F8006E04F2 /* QuickLookSoftLink.mm */,18869 443917FE1A91B2F8006E04F2 /* ios/QuickLookSoftLink.h */, 18870 443917FD1A91B2F8006E04F2 /* ios/QuickLookSoftLink.mm */, 18868 18871 CDFC360118CA61630026E56F /* RemoteCommandListenerIOS.h */, 18869 18872 CDFC360218CA61630026E56F /* RemoteCommandListenerIOS.mm */, … … 22932 22935 D619A305144E00BE004BC302 /* ChildListMutationScope.cpp */, 22933 22936 D619A306144E00BE004BC302 /* ChildListMutationScope.h */, 22937 83D26D3C1AFDCC50001B3873 /* ChildNode.idl */, 22934 22938 A818721A0977D3C0005826D9 /* ChildNodeList.cpp */, 22935 22939 A81872150977D3C0005826D9 /* ChildNodeList.h */, … … 23166 23170 E43105BA16750F1600DB2FB8 /* NodeTraversal.h */, 23167 23171 9382AAB10D8C386100F357A6 /* NodeWithIndex.h */, 23172 8369E58F1AFDD0300087DF68 /* NonDocumentTypeChildNode.idl */, 23168 23173 1A0D57340A5C77FE007EDD4C /* OverflowEvent.cpp */, 23169 23174 1A0D57350A5C77FE007EDD4C /* OverflowEvent.h */, … … 23172 23177 E1284AE010447D4500EAEB52 /* PageTransitionEvent.h */, 23173 23178 E1284AD910447AEB00EAEB52 /* PageTransitionEvent.idl */, 23179 83D26D3D1AFDCC50001B3873 /* ParentNode.idl */, 23174 23180 8A7CC96F12076F8A001D4588 /* PendingScript.cpp */, 23175 23181 8A7CC96A12076D73001D4588 /* PendingScript.h */, … … 26072 26078 CE12523D1A1676CD00864480 /* QuartzCoreSPI.h in Headers */, 26073 26079 442AF7A9102CDDEA008FD4D3 /* QuickLook.h in Headers */, 26074 443918001A91B2F8006E04F2 /* QuickLookSoftLink.h in Headers */,26080 443918001A91B2F8006E04F2 /* ios/QuickLookSoftLink.h in Headers */, 26075 26081 A149786F1ABAF33800CEF7E4 /* ContentFilter.h in Headers */, 26076 26082 CE1252391A166FA000864480 /* QuickLookSPI.h in Headers */, … … 29576 29582 550A0BC9085F6039007353D6 /* QualifiedName.cpp in Sources */, 29577 29583 442AF7AA102CDDEA008FD4D3 /* QuickLook.mm in Sources */, 29578 443917FF1A91B2F8006E04F2 /* QuickLookSoftLink.mm in Sources */,29584 443917FF1A91B2F8006E04F2 /* ios/QuickLookSoftLink.mm in Sources */, 29579 29585 072AE1E6183C0741000A5988 /* QuickTimePluginReplacement.mm in Sources */, 29580 29586 379E371613736A6600B9E919 /* QuotedPrintable.cpp in Sources */, -
trunk/Source/WebCore/dom/CharacterData.idl
r184034 r184042 38 38 [IsIndex, Default=Undefined] optional unsigned long length, 39 39 [Default=Undefined] optional DOMString data); 40 41 // From the NonDocumentTypeChildNode interface - https://dom.spec.whatwg.org/#nondocumenttypechildnode42 // FIXME: Move this to a seperate NonDocumentTypeChildNode IDL file when one exists.43 readonly attribute Element previousElementSibling;44 readonly attribute Element nextElementSibling;45 40 }; 46 41 47 42 CharacterData implements ChildNode; 48 43 CharacterData implements NonDocumentTypeChildNode; -
trunk/Source/WebCore/dom/Document.idl
r184034 r184042 218 218 219 219 readonly attribute DOMString compatMode; 220 221 // NodeSelector - Selector API222 [RaisesException] Element querySelector(DOMString selectors);223 [RaisesException] NodeList querySelectorAll(DOMString selectors);224 220 225 221 #if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API … … 345 341 // http://dev.w3.org/csswg/cssom-view/#dom-document-scrollingelement 346 342 readonly attribute Element scrollingElement; 347 348 // From the ParentNode interface - https://dom.spec.whatwg.org/#interface-parentnode349 // FIXME: Move this to a seperate ParentNode IDL file when one exists.350 readonly attribute Element firstElementChild;351 readonly attribute Element lastElementChild;352 readonly attribute unsigned long childElementCount;353 343 }; 354 344 345 Document implements ParentNode; -
trunk/Source/WebCore/dom/DocumentFragment.idl
r184034 r184042 22 22 ConstructorCallWith=Document 23 23 ] interface DocumentFragment : Node { 24 // NodeSelector - Selector API25 [RaisesException] Element querySelector(DOMString selectors);26 [RaisesException] NodeList querySelectorAll(DOMString selectors);27 28 // From the ParentNode interface - https://dom.spec.whatwg.org/#interface-parentnode29 // FIXME: Move this to a seperate ParentNode IDL file when one exists.30 readonly attribute Element firstElementChild;31 readonly attribute Element lastElementChild;32 readonly attribute unsigned long childElementCount;33 24 }; 34 25 26 DocumentFragment implements ParentNode; -
trunk/Source/WebCore/dom/Element.idl
r184034 r184042 120 120 #endif 121 121 122 // NodeSelector - Selector API123 [RaisesException] Element querySelector(DOMString selectors);124 [RaisesException] NodeList querySelectorAll(DOMString selectors);125 126 122 [RaisesException] boolean matches(DOMString selectors); 127 123 [RaisesException] Element closest(DOMString selectors); 128 124 [ImplementedAs=matches, RaisesException] boolean webkitMatchesSelector(DOMString selectors); 129 130 // From the ParentNode interface - https://dom.spec.whatwg.org/#interface-parentnode131 // FIXME: Move this to a seperate ParentNode IDL file when one exists.132 readonly attribute Element firstElementChild;133 readonly attribute Element lastElementChild;134 readonly attribute unsigned long childElementCount;135 136 // From the NonDocumentTypeChildNode interface - https://dom.spec.whatwg.org/#nondocumenttypechildnode137 // FIXME: Move this to a seperate NonDocumentTypeChildNode IDL file when one exists.138 readonly attribute Element previousElementSibling;139 readonly attribute Element nextElementSibling;140 125 141 126 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT … … 287 272 288 273 Element implements ChildNode; 289 274 Element implements ParentNode; 275 Element implements NonDocumentTypeChildNode;
Note:
See TracChangeset
for help on using the changeset viewer.