Changeset 101183 in webkit
- Timestamp:
- Nov 25, 2011 3:34:42 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r101182 r101183 1 2011-11-25 Kentaro Hara <haraken@chromium.org> 2 3 Implement the WebGLContextEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=72856 5 6 Reviewed by Adam Barth. 7 8 webgl-context-event-constructor.html checks the behavior of the WebGLContextEvent constructor. 9 10 * fast/dom/constructed-objects-prototypes-expected.txt: Added window.WebGLContextEvent. 11 * fast/events/constructors/webgl-context-event-constructor-expected.txt: Added. 12 * fast/events/constructors/webgl-context-event-constructor.html: Added. 13 1 14 2011-11-25 Ryosuke Niwa <rniwa@webkit.org> 2 15 -
trunk/LayoutTests/fast/dom/constructed-objects-prototypes-expected.txt
r100921 r101183 40 40 PASS (new inner.ProgressEvent()).isInner is true 41 41 PASS (new inner.ProgressEvent()).constructor.isInner is true 42 PASS (new inner.WebGLContextEvent()).isInner is true 43 PASS (new inner.WebGLContextEvent()).constructor.isInner is true 42 44 PASS (new inner.WebKitAnimationEvent()).isInner is true 43 45 PASS (new inner.WebKitAnimationEvent()).constructor.isInner is true -
trunk/Source/WebCore/ChangeLog
r101181 r101183 1 2011-11-25 Kentaro Hara <haraken@chromium.org> 2 3 Implement the WebGLContextEvent constructor 4 https://bugs.webkit.org/show_bug.cgi?id=72856 5 6 Reviewed by Adam Barth. 7 8 This patch makes WebGLContextEvent constructable. 9 The spec: http://www.khronos.org/registry/webgl/specs/latest/#5.14 10 11 Test: fast/events/constructors/webgl-context-event-constructor.html 12 13 * html/canvas/WebGLContextEvent.cpp: Added an implementation of the WebGLContextEvent constructor. 14 (WebCore::WebGLContextEventInit::WebGLContextEventInit): 15 (WebCore::WebGLContextEvent::WebGLContextEvent): 16 * html/canvas/WebGLContextEvent.h: Added a definition of WebGLContextEventInit. 17 (WebCore::WebGLContextEvent::create): 18 * html/canvas/WebGLContextEvent.idl: Added [ConstructorTemplate=Event] IDL. 19 1 20 2011-11-25 Jeff Timanus <twiz@chromium.org> 2 21 -
trunk/Source/WebCore/html/canvas/WebGLContextEvent.cpp
r99780 r101183 31 31 namespace WebCore { 32 32 33 WebGLContextEventInit::WebGLContextEventInit() 34 { 35 } 36 33 37 WebGLContextEvent::WebGLContextEvent() 34 38 { … … 38 42 : Event(type, canBubble, cancelable) 39 43 , m_statusMessage(statusMessage) 44 { 45 } 46 47 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContextEventInit& initializer) 48 : Event(type, initializer) 49 , m_statusMessage(initializer.statusMessage) 40 50 { 41 51 } -
trunk/Source/WebCore/html/canvas/WebGLContextEvent.h
r99780 r101183 31 31 namespace WebCore { 32 32 33 struct WebGLContextEventInit : public EventInit { 34 WebGLContextEventInit(); 35 36 String statusMessage; 37 }; 38 33 39 class WebGLContextEvent : public Event { 34 40 public: … … 41 47 return adoptRef(new WebGLContextEvent(type, canBubble, cancelable, statusMessage)); 42 48 } 49 static PassRefPtr<WebGLContextEvent> create(const AtomicString& type, const WebGLContextEventInit& initializer) 50 { 51 return adoptRef(new WebGLContextEvent(type, initializer)); 52 } 43 53 virtual ~WebGLContextEvent(); 44 54 … … 50 60 WebGLContextEvent(); 51 61 WebGLContextEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage); 62 WebGLContextEvent(const AtomicString&, const WebGLContextEventInit&); 52 63 53 64 String m_statusMessage; -
trunk/Source/WebCore/html/canvas/WebGLContextEvent.idl
r99780 r101183 25 25 26 26 module html { 27 27 28 interface [ 28 29 Conditional=WEBGL, 30 ConstructorTemplate=Event 29 31 ] WebGLContextEvent : Event { 30 readonly attribute DOMString statusMessage;32 readonly attribute [InitializedByConstructor] DOMString statusMessage; 31 33 }; 34 32 35 }
Note: See TracChangeset
for help on using the changeset viewer.