Diff
Modified: trunk/LayoutTests/ChangeLog (94492 => 94493)
--- trunk/LayoutTests/ChangeLog 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/LayoutTests/ChangeLog 2011-09-03 19:26:54 UTC (rev 94493)
@@ -1,3 +1,16 @@
+2011-09-03 Sam Weinig <[email protected]>
+
+ Add missing Event constructors to DOMWindow.idl
+ https://bugs.webkit.org/show_bug.cgi?id=67449
+
+ Reviewed by Anders Carlsson.
+
+ * platform/mac/fast/dom/Window/window-properties-expected.txt:
+ * platform/mac/fast/dom/Window/window-property-descriptors-expected.txt:
+ * platform/mac/fast/dom/prototype-inheritance-expected.txt:
+ * platform/mac/fast/js/global-constructors-expected.txt:
+ Update results for new constructors.
+
2011-08-27 Robert Hogan <[email protected]>
div align="center" rendering problem
Modified: trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt (94492 => 94493)
--- trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt 2011-09-03 19:26:54 UTC (rev 94493)
@@ -40,12 +40,12 @@
PASS CSSStyleSheet from inner.document.forms.testForm.0.ownerDocument.styleSheets.0
PASS CSSStyleSheetConstructor from inner.document.forms.testForm.0.ownerDocument.styleSheets.0.constructor
PASS CSSStyleSheetPrototype from inner.document.forms.testForm.0.ownerDocument.styleSheets.0.__proto__
-PASS CSSValue from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(-webkit-line-box-contain)
-PASS CSSValueConstructor from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(-webkit-line-box-contain).constructor
+PASS CSSValue from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(border-image-slice)
+PASS CSSValueConstructor from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(border-image-slice).constructor
PASS CSSValueList from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(-webkit-transition-timing-function)
PASS CSSValueListConstructor from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(background-position).constructor
PASS CSSValueListPrototype from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(-webkit-transition-timing-function).__proto__
-PASS CSSValuePrototype from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(-webkit-line-box-contain).__proto__
+PASS CSSValuePrototype from inner.getComputedStyle(inner.document.body).getPropertyCSSValue(border-image-slice).__proto__
PASS CanvasPattern from inner.document.getElementsByTagName("canvas")[0].getContext("2d").createPattern(inner.document.getElementsByTagName("img")[0], "")
PASS CanvasPatternConstructor from inner.document.getElementsByTagName("canvas")[0].getContext("2d").createPattern(inner.document.getElementsByTagName("img")[0], "").constructor
PASS CanvasPatternPrototype from inner.document.getElementsByTagName("canvas")[0].getContext("2d").createPattern(inner.document.getElementsByTagName("img")[0], "").__proto__
Modified: trunk/LayoutTests/platform/mac/fast/dom/Window/window-properties-expected.txt (94492 => 94493)
--- trunk/LayoutTests/platform/mac/fast/dom/Window/window-properties-expected.txt 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/LayoutTests/platform/mac/fast/dom/Window/window-properties-expected.txt 2011-09-03 19:26:54 UTC (rev 94493)
@@ -507,6 +507,33 @@
window.CloseEvent.prototype.stopPropagation [function]
window.Comment [object CommentConstructor]
window.Comment.prototype [printed above as window.CharacterData.prototype]
+window.CompositionEvent [object CompositionEventConstructor]
+window.CompositionEvent.prototype [object CompositionEventPrototype]
+window.CompositionEvent.prototype.AT_TARGET [number]
+window.CompositionEvent.prototype.BLUR [number]
+window.CompositionEvent.prototype.BUBBLING_PHASE [number]
+window.CompositionEvent.prototype.CAPTURING_PHASE [number]
+window.CompositionEvent.prototype.CHANGE [number]
+window.CompositionEvent.prototype.CLICK [number]
+window.CompositionEvent.prototype.DBLCLICK [number]
+window.CompositionEvent.prototype.DRAGDROP [number]
+window.CompositionEvent.prototype.FOCUS [number]
+window.CompositionEvent.prototype.KEYDOWN [number]
+window.CompositionEvent.prototype.KEYPRESS [number]
+window.CompositionEvent.prototype.KEYUP [number]
+window.CompositionEvent.prototype.MOUSEDOWN [number]
+window.CompositionEvent.prototype.MOUSEDRAG [number]
+window.CompositionEvent.prototype.MOUSEMOVE [number]
+window.CompositionEvent.prototype.MOUSEOUT [number]
+window.CompositionEvent.prototype.MOUSEOVER [number]
+window.CompositionEvent.prototype.MOUSEUP [number]
+window.CompositionEvent.prototype.SELECT [number]
+window.CompositionEvent.prototype.initCompositionEvent [function]
+window.CompositionEvent.prototype.initEvent [function]
+window.CompositionEvent.prototype.initUIEvent [function]
+window.CompositionEvent.prototype.preventDefault [function]
+window.CompositionEvent.prototype.stopImmediatePropagation [function]
+window.CompositionEvent.prototype.stopPropagation [function]
window.Counter [object CounterConstructor]
window.Counter.prototype [object CounterPrototype]
window.CustomEvent [object CustomEventConstructor]
@@ -921,6 +948,32 @@
window.EntityReference.prototype.removeEventListener [function]
window.EntityReference.prototype.replaceChild [function]
window.Error [function]
+window.ErrorEvent [object ErrorEventConstructor]
+window.ErrorEvent.prototype [object ErrorEventPrototype]
+window.ErrorEvent.prototype.AT_TARGET [number]
+window.ErrorEvent.prototype.BLUR [number]
+window.ErrorEvent.prototype.BUBBLING_PHASE [number]
+window.ErrorEvent.prototype.CAPTURING_PHASE [number]
+window.ErrorEvent.prototype.CHANGE [number]
+window.ErrorEvent.prototype.CLICK [number]
+window.ErrorEvent.prototype.DBLCLICK [number]
+window.ErrorEvent.prototype.DRAGDROP [number]
+window.ErrorEvent.prototype.FOCUS [number]
+window.ErrorEvent.prototype.KEYDOWN [number]
+window.ErrorEvent.prototype.KEYPRESS [number]
+window.ErrorEvent.prototype.KEYUP [number]
+window.ErrorEvent.prototype.MOUSEDOWN [number]
+window.ErrorEvent.prototype.MOUSEDRAG [number]
+window.ErrorEvent.prototype.MOUSEMOVE [number]
+window.ErrorEvent.prototype.MOUSEOUT [number]
+window.ErrorEvent.prototype.MOUSEOVER [number]
+window.ErrorEvent.prototype.MOUSEUP [number]
+window.ErrorEvent.prototype.SELECT [number]
+window.ErrorEvent.prototype.initErrorEvent [function]
+window.ErrorEvent.prototype.initEvent [function]
+window.ErrorEvent.prototype.preventDefault [function]
+window.ErrorEvent.prototype.stopImmediatePropagation [function]
+window.ErrorEvent.prototype.stopPropagation [function]
window.EvalError [function]
window.Event [object EventConstructor]
window.Event.AT_TARGET [number]
@@ -1353,6 +1406,8 @@
window.PluginArray.prototype.item [function]
window.PluginArray.prototype.namedItem [function]
window.PluginArray.prototype.refresh [function]
+window.PopStateEvent [object PopStateEventConstructor]
+window.PopStateEvent.prototype [printed above as window.Event.prototype]
window.ProcessingInstruction [object ProcessingInstructionConstructor]
window.ProcessingInstruction.prototype [printed above as window.Node.prototype]
window.ProgressEvent [object ProgressEventConstructor]
@@ -2039,6 +2094,8 @@
window.UIEvent [object UIEventConstructor]
window.UIEvent.prototype [printed above as window.Event.prototype]
window.URIError [function]
+window.WebGLContextEvent [object WebGLContextEventConstructor]
+window.WebGLContextEvent.prototype [printed above as window.Event.prototype]
window.WebKitAnimationEvent [object WebKitAnimationEventConstructor]
window.WebKitAnimationEvent.prototype [printed above as window.Event.prototype]
window.WebKitCSSKeyframeRule [object WebKitCSSKeyframeRuleConstructor]
@@ -2142,6 +2199,8 @@
window.XMLHttpRequestException.prototype.ABORT_ERR [number]
window.XMLHttpRequestException.prototype.NETWORK_ERR [number]
window.XMLHttpRequestException.prototype.toString [function]
+window.XMLHttpRequestProgressEvent [object XMLHttpRequestProgressEventConstructor]
+window.XMLHttpRequestProgressEvent.prototype [printed above as window.Event.prototype]
window.XMLHttpRequestUpload [object XMLHttpRequestUploadConstructor]
window.XMLHttpRequestUpload.prototype [object XMLHttpRequestUploadPrototype]
window.XMLHttpRequestUpload.prototype.addEventListener [function]
Modified: trunk/LayoutTests/platform/mac/fast/dom/Window/window-property-descriptors-expected.txt (94492 => 94493)
--- trunk/LayoutTests/platform/mac/fast/dom/Window/window-property-descriptors-expected.txt 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/LayoutTests/platform/mac/fast/dom/Window/window-property-descriptors-expected.txt 2011-09-03 19:26:54 UTC (rev 94493)
@@ -32,6 +32,7 @@
PASS typeof Object.getOwnPropertyDescriptor(window, 'Clipboard') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'CloseEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Comment') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'CompositionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Counter') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'CustomEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'DOMException') is 'object'
@@ -49,6 +50,7 @@
PASS typeof Object.getOwnPropertyDescriptor(window, 'Entity') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'EntityReference') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Error') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'ErrorEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'EvalError') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Event') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'EventException') is 'object'
@@ -155,6 +157,7 @@
PASS typeof Object.getOwnPropertyDescriptor(window, 'PageTransitionEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'Plugin') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'PluginArray') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'PopStateEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'ProcessingInstruction') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'ProgressEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'RGBColor') is 'object'
@@ -319,6 +322,7 @@
PASS typeof Object.getOwnPropertyDescriptor(window, 'TypeError') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'UIEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'URIError') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'WebGLContextEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitAnimationEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitCSSKeyframeRule') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'WebKitCSSKeyframesRule') is 'object'
@@ -332,6 +336,7 @@
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLDocument') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequest') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequestException') is 'object'
+PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequestProgressEvent') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLHttpRequestUpload') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XMLSerializer') is 'object'
PASS typeof Object.getOwnPropertyDescriptor(window, 'XPathEvaluator') is 'object'
Modified: trunk/LayoutTests/platform/mac/fast/js/global-constructors-expected.txt (94492 => 94493)
--- trunk/LayoutTests/platform/mac/fast/js/global-constructors-expected.txt 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/LayoutTests/platform/mac/fast/js/global-constructors-expected.txt 2011-09-03 19:26:54 UTC (rev 94493)
@@ -30,6 +30,7 @@
PASS Clipboard.toString() is '[object ClipboardConstructor]'
PASS CloseEvent.toString() is '[object CloseEventConstructor]'
PASS Comment.toString() is '[object CommentConstructor]'
+PASS CompositionEvent.toString() is '[object CompositionEventConstructor]'
PASS Counter.toString() is '[object CounterConstructor]'
PASS CustomEvent.toString() is '[object CustomEventConstructor]'
PASS DOMException.toString() is '[object DOMExceptionConstructor]'
@@ -45,6 +46,7 @@
PASS Element.toString() is '[object ElementConstructor]'
PASS Entity.toString() is '[object EntityConstructor]'
PASS EntityReference.toString() is '[object EntityReferenceConstructor]'
+PASS ErrorEvent.toString() is '[object ErrorEventConstructor]'
PASS Event.toString() is '[object EventConstructor]'
PASS EventException.toString() is '[object EventExceptionConstructor]'
PASS EventSource.toString() is '[object EventSourceConstructor]'
@@ -143,6 +145,7 @@
PASS PageTransitionEvent.toString() is '[object PageTransitionEventConstructor]'
PASS Plugin.toString() is '[object PluginConstructor]'
PASS PluginArray.toString() is '[object PluginArrayConstructor]'
+PASS PopStateEvent.toString() is '[object PopStateEventConstructor]'
PASS ProcessingInstruction.toString() is '[object ProcessingInstructionConstructor]'
PASS ProgressEvent.toString() is '[object ProgressEventConstructor]'
PASS RGBColor.toString() is '[object RGBColorConstructor]'
@@ -300,6 +303,7 @@
PASS TextMetrics.toString() is '[object TextMetricsConstructor]'
PASS TimeRanges.toString() is '[object TimeRangesConstructor]'
PASS UIEvent.toString() is '[object UIEventConstructor]'
+PASS WebGLContextEvent.toString() is '[object WebGLContextEventConstructor]'
PASS WebKitAnimationEvent.toString() is '[object WebKitAnimationEventConstructor]'
PASS WebKitCSSKeyframeRule.toString() is '[object WebKitCSSKeyframeRuleConstructor]'
PASS WebKitCSSKeyframesRule.toString() is '[object WebKitCSSKeyframesRuleConstructor]'
@@ -313,6 +317,7 @@
PASS XMLDocument.toString() is '[object DocumentConstructor]'
PASS XMLHttpRequest.toString() is '[object XMLHttpRequestConstructor]'
PASS XMLHttpRequestException.toString() is '[object XMLHttpRequestExceptionConstructor]'
+PASS XMLHttpRequestProgressEvent.toString() is '[object XMLHttpRequestProgressEventConstructor]'
PASS XMLHttpRequestUpload.toString() is '[object XMLHttpRequestUploadConstructor]'
PASS XMLSerializer.toString() is '[object XMLSerializerConstructor]'
PASS XPathEvaluator.toString() is '[object XPathEvaluatorConstructor]'
Modified: trunk/Source/WebCore/ChangeLog (94492 => 94493)
--- trunk/Source/WebCore/ChangeLog 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/Source/WebCore/ChangeLog 2011-09-03 19:26:54 UTC (rev 94493)
@@ -1,3 +1,14 @@
+2011-09-03 Sam Weinig <[email protected]>
+
+ Add missing Event constructors to DOMWindow.idl
+ https://bugs.webkit.org/show_bug.cgi?id=67449
+
+ Reviewed by Anders Carlsson.
+
+ Covered by existing tests.
+
+ * page/DOMWindow.idl:
+
2011-08-27 Robert Hogan <[email protected]>
div align="center" rendering problem
Modified: trunk/Source/WebCore/dom/ErrorEvent.idl (94492 => 94493)
--- trunk/Source/WebCore/dom/ErrorEvent.idl 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/Source/WebCore/dom/ErrorEvent.idl 2011-09-03 19:26:54 UTC (rev 94493)
@@ -31,7 +31,6 @@
module events {
interface [
- Conditional=WORKERS,
NoStaticTables
] ErrorEvent : Event {
Modified: trunk/Source/WebCore/page/DOMWindow.idl (94492 => 94493)
--- trunk/Source/WebCore/page/DOMWindow.idl 2011-09-03 18:28:57 UTC (rev 94492)
+++ trunk/Source/WebCore/page/DOMWindow.idl 2011-09-03 19:26:54 UTC (rev 94493)
@@ -334,9 +334,7 @@
attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
- attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] DeviceMotionEventConstructor DeviceMotionEvent;
attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondevicemotion;
- attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondeviceorientation;
attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor PeerConnection;
@@ -518,15 +516,19 @@
attribute [JSCCustomGetter,Conditional=WEB_AUDIO,EnabledAtRuntime] AudioContextConstructor webkitAudioContext; // Usable with new operator
attribute [Conditional=WEB_AUDIO] AudioPannerNodeConstructor webkitAudioPannerNode; // Needed for panning model constants
+ // Event Constructors
attribute EventConstructor Event;
+ attribute BeforeLoadEventConstructor BeforeLoadEvent;
+ attribute CompositionEventConstructor CompositionEvent;
attribute CustomEventConstructor CustomEvent;
-
- attribute BeforeLoadEventConstructor BeforeLoadEvent;
+ attribute ErrorEventConstructor ErrorEvent;
attribute HashChangeEventConstructor HashChangeEvent;
attribute KeyboardEventConstructor KeyboardEvent;
+ attribute MessageEventConstructor MessageEvent;
attribute MouseEventConstructor MouseEvent;
attribute MutationEventConstructor MutationEvent;
attribute OverflowEventConstructor OverflowEvent;
+ attribute PopStateEventConstructor PopStateEvent;
attribute PageTransitionEventConstructor PageTransitionEvent;
attribute ProgressEventConstructor ProgressEvent;
attribute TextEventConstructor TextEvent;
@@ -534,7 +536,19 @@
attribute WebKitAnimationEventConstructor WebKitAnimationEvent;
attribute WebKitTransitionEventConstructor WebKitTransitionEvent;
attribute WheelEventConstructor WheelEvent;
- attribute MessageEventConstructor MessageEvent;
+ attribute XMLHttpRequestProgressEventConstructor XMLHttpRequestProgressEvent;
+ attribute [Conditional=SVG] SVGZoomEventConstructor SVGZoomEvent;
+ attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceMotionEventConstructor DeviceMotionEvent;
+ attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
+ attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent;
+ attribute [Conditional=WEB_SOCKETS] CloseEventConstructor CloseEvent;
+ attribute [Conditional=DOM_STORAGE] StorageEventConstructor StorageEvent;
+ attribute [Conditional=WEB_AUDIO] AudioProcessingEventConstructor AudioProcessingEvent;
+ attribute [Conditional=WEB_AUDIO] OfflineAudioCompletionEventConstructor OfflineAudioCompletionEvent;
+ attribute [Conditional=INPUT_SPEECH] SpeechInputEventConstructor SpeechInputEvent;
+ attribute [Conditional=MEDIA_STREAM] MediaStreamEventConstructor MediaStreamEvent;
+ attribute [Conditional=WEBGL] WebGLContextEventConstructor WebGLContextEvent;
+
attribute EventExceptionConstructor EventException;
attribute WebKitCSSKeyframeRuleConstructor WebKitCSSKeyframeRule;
@@ -586,7 +600,6 @@
#if defined(ENABLE_WEB_SOCKETS) && ENABLE_WEB_SOCKETS
attribute [JSCCustomGetter,EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
- attribute CloseEventConstructor CloseEvent;
#endif
attribute DOMPluginConstructor Plugin;
@@ -600,7 +613,6 @@
#if defined(ENABLE_DOM_STORAGE) && ENABLE_DOM_STORAGE
attribute StorageConstructor Storage;
- attribute StorageEventConstructor StorageEvent;
#endif
attribute [CustomGetter, Conditional=VIDEO, EnabledAtRuntime] HTMLAudioElementConstructor Audio; // Usable with the new operator
@@ -720,7 +732,6 @@
attribute SVGUseElementConstructor SVGUseElement;
attribute SVGViewElementConstructor SVGViewElement;
// attribute SVGViewSpecConstructor SVGViewSpec;
- attribute SVGZoomEventConstructor SVGZoomEvent;
#if defined(ENABLE_SVG_ANIMATION) && ENABLE_SVG_ANIMATION
attribute SVGAnimateColorElementConstructor SVGAnimateColorElement;
@@ -786,7 +797,6 @@
attribute [Conditional=DATABASE] SQLExceptionConstructor SQLException;
- attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent;
attribute DOMFormDataConstructor FormData;