Changeset 29041 in webkit
- Timestamp:
- Dec 30, 2007 2:24:47 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r29039 r29041 1 2007-12-30 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Oliver Hunt. 4 5 Test for http://bugs.webkit.org/show_bug.cgi?id=10686 6 event instanceof MouseEvent throws exception 7 8 * fast/dom/Window/window-properties-expected.txt: 9 * fast/events/event-instanceof.html: Added. 10 * fast/events/resources/event-instanceof.js: Added. 11 1 12 2007-12-30 David Kilzer <ddkilzer@webkit.org> 2 13 -
trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt
r28981 r29041 690 690 window.HTMLVideoElement.prototype [printed above as window.Element.prototype] 691 691 window.Image [object Object] 692 window.KeyboardEvent [object KeyboardEventConstructor] 693 window.KeyboardEvent.prototype [printed above as window.Event.prototype] 692 694 window.MediaError [object MediaErrorConstructor] 693 695 window.MediaError.MEDIA_ERR_ABORTED [number] … … 703 705 window.MediaList.prototype.deleteMedium [function] 704 706 window.MediaList.prototype.item [function] 707 window.MouseEvent [object MouseEventConstructor] 708 window.MouseEvent.prototype [printed above as window.Event.prototype] 705 709 window.MutationEvent [object MutationEventConstructor] 706 710 window.MutationEvent.ADDITION [number] … … 798 802 window.Notation.prototype [printed above as window.Node.prototype] 799 803 window.Option [object Object] 804 window.OverflowEvent [object OverflowEventConstructor] 805 window.OverflowEvent.BOTH [number] 806 window.OverflowEvent.HORIZONTAL [number] 807 window.OverflowEvent.VERTICAL [number] 808 window.OverflowEvent.prototype [printed above as window.Event.prototype] 800 809 window.ProcessingInstruction [object ProcessingInstructionConstructor] 801 810 window.ProcessingInstruction.prototype [printed above as window.Node.prototype] 811 window.ProgressEvent [object ProgressEventConstructor] 812 window.ProgressEvent.prototype [printed above as window.Event.prototype] 802 813 window.Range [object RangeConstructor] 803 814 window.Range.END_TO_END [number] … … 1067 1078 window.Text [object TextConstructor] 1068 1079 window.Text.prototype [printed above as window.CharacterData.prototype] 1080 window.TextEvent [object TextEventConstructor] 1081 window.TextEvent.prototype [printed above as window.Event.prototype] 1069 1082 window.TypeError [function] 1083 window.UIEvent [object UIEventConstructor] 1084 window.UIEvent.prototype [printed above as window.Event.prototype] 1070 1085 window.URIError [function] 1086 window.WheelEvent [object WheelEventConstructor] 1087 window.WheelEvent.prototype [printed above as window.Event.prototype] 1071 1088 window.XMLDocument [printed above as window.Document] 1072 1089 window.XMLHttpRequest [object Object] -
trunk/WebCore/ChangeLog
r29039 r29041 1 2007-12-30 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Oliver Hunt. 4 5 Patch for http://bugs.webkit.org/show_bug.cgi?id=10686 6 event instanceof MouseEvent throws exception 7 8 Add JS constructors for all the Event types. 9 10 Test: fast/events/event-instanceof.html 11 12 * WebCore.xcodeproj/project.pbxproj: 13 * dom/KeyboardEvent.idl: 14 * dom/MouseEvent.idl: 15 * dom/MutationEvent.idl: 16 * dom/OverflowEvent.idl: 17 * dom/ProgressEvent.idl: 18 * dom/TextEvent.idl: 19 * dom/UIEvent.idl: 20 * dom/WheelEvent.idl: 21 * page/DOMWindow.idl: 22 1 23 2007-12-30 David Kilzer <ddkilzer@webkit.org> 2 24 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r29012 r29041 14288 14288 isa = PBXProject; 14289 14289 buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */; 14290 compatibilityVersion = "Xcode 2.4"; 14290 14291 hasScannedForEncodings = 1; 14291 14292 knownRegions = ( -
trunk/WebCore/dom/KeyboardEvent.idl
r25754 r29041 22 22 23 23 // Introduced in DOM Level 3: 24 interface KeyboardEvent : UIEvent { 24 interface [ 25 GenerateConstructor 26 ] KeyboardEvent : UIEvent { 25 27 26 28 #if !defined(LANGUAGE_JAVASCRIPT) -
trunk/WebCore/dom/MouseEvent.idl
r25754 r29041 21 21 22 22 // Introduced in DOM Level 2: 23 interface MouseEvent : UIEvent { 23 interface [ 24 GenerateConstructor 25 ] MouseEvent : UIEvent { 24 26 readonly attribute long screenX; 25 27 readonly attribute long screenY; -
trunk/WebCore/dom/MutationEvent.idl
r25754 r29041 21 21 22 22 // Introduced in DOM Level 2: 23 interface [GenerateConstructor] MutationEvent : Event { 23 interface [ 24 GenerateConstructor 25 ] MutationEvent : Event { 24 26 25 27 // attrChangeType -
trunk/WebCore/dom/OverflowEvent.idl
r20130 r29041 25 25 module events { 26 26 27 interface OverflowEvent : Event { 27 interface [ 28 GenerateConstructor 29 ] OverflowEvent : Event { 28 30 const unsigned short HORIZONTAL = 0; 29 31 const unsigned short VERTICAL = 1; -
trunk/WebCore/dom/ProgressEvent.idl
r27277 r29041 23 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 25 26 module events { 26 27 27 interface ProgressEvent : Event { 28 readonly attribute boolean lengthComputable; 29 readonly attribute unsigned long loaded; 30 readonly attribute unsigned long total; 31 void initProgressEvent(in DOMString typeArg, 32 in boolean canBubbleArg, 33 in boolean cancelableArg, 34 in boolean lengthComputableArg, 35 in unsigned long loadedArg, 36 in unsigned long totalArg); 37 void initProgressEventNS(in DOMString namespaceURI, 38 in DOMString typeArg, 39 in boolean canBubbleArg, 40 in boolean cancelableArg, 41 in boolean lengthComputableArg, 42 in unsigned long loadedArg, 43 in unsigned long totalArg); 44 }; 28 interface [ 29 GenerateConstructor 30 ] ProgressEvent : Event { 31 readonly attribute boolean lengthComputable; 32 readonly attribute unsigned long loaded; 33 readonly attribute unsigned long total; 34 void initProgressEvent(in DOMString typeArg, 35 in boolean canBubbleArg, 36 in boolean cancelableArg, 37 in boolean lengthComputableArg, 38 in unsigned long loadedArg, 39 in unsigned long totalArg); 40 void initProgressEventNS(in DOMString namespaceURI, 41 in DOMString typeArg, 42 in boolean canBubbleArg, 43 in boolean cancelableArg, 44 in boolean lengthComputableArg, 45 in unsigned long loadedArg, 46 in unsigned long totalArg); 47 }; 45 48 46 49 } -
trunk/WebCore/dom/TextEvent.idl
r19538 r29041 27 27 28 28 // Introduced in DOM Level 3: 29 interface TextEvent : UIEvent { 29 interface [ 30 GenerateConstructor 31 ] TextEvent : UIEvent { 30 32 31 33 readonly attribute DOMString data; -
trunk/WebCore/dom/UIEvent.idl
r25754 r29041 21 21 22 22 // Introduced in DOM Level 2: 23 interface UIEvent : Event { 23 interface [ 24 GenerateConstructor 25 ] UIEvent : Event { 24 26 readonly attribute DOMWindow view; 25 27 readonly attribute long detail; -
trunk/WebCore/dom/WheelEvent.idl
r25754 r29041 1 1 /* 2 * Copyright (C) 2006 Apple Computer, Inc.2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 4 * … … 22 22 23 23 // Based off of proposed IDL interface for WheelEvent: 24 interface WheelEvent : UIEvent { 24 interface [ 25 GenerateConstructor 26 ] WheelEvent : UIEvent { 25 27 readonly attribute long screenX; 26 28 readonly attribute long screenY; -
trunk/WebCore/page/DOMWindow.idl
r28570 r29041 241 241 242 242 attribute EventConstructor Event; 243 attribute KeyboardEventConstructor KeyboardEvent; 244 attribute MouseEventConstructor MouseEvent; 243 245 attribute MutationEventConstructor MutationEvent; 246 attribute OverflowEventConstructor OverflowEvent; 247 attribute ProgressEventConstructor ProgressEvent; 248 attribute TextEventConstructor TextEvent; 249 attribute UIEventConstructor UIEvent; 250 attribute WheelEventConstructor WheelEvent; 244 251 245 252 attribute NodeFilterConstructor NodeFilter;
Note: See TracChangeset
for help on using the changeset viewer.