diff options
author | Tyler Southwick <tyler@northfuse.net> | 2016-04-22 01:32:01 -0700 |
---|---|---|
committer | Tyler Southwick <tyler@northfuse.net> | 2016-04-22 19:54:13 -0700 |
commit | cba0267ed4ba912b86d36f6d68955aac21f063b0 (patch) | |
tree | c2a4521beec4d87b4e12bedaead9b06f1d22be4f /components/script/dom/webglcontextevent.rs | |
parent | 1946c71a9612260fefda89c528e41a1b259365c5 (diff) | |
download | servo-cba0267ed4ba912b86d36f6d68955aac21f063b0.tar.gz servo-cba0267ed4ba912b86d36f6d68955aac21f063b0.zip |
implement webglcontextevent
Diffstat (limited to 'components/script/dom/webglcontextevent.rs')
-rw-r--r-- | components/script/dom/webglcontextevent.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/script/dom/webglcontextevent.rs b/components/script/dom/webglcontextevent.rs index ac93727eb7c..fa785146499 100644 --- a/components/script/dom/webglcontextevent.rs +++ b/components/script/dom/webglcontextevent.rs @@ -41,6 +41,17 @@ impl WebGLContextEvent { } } + pub fn new_uninitialized(global_ref: GlobalRef) -> Root<WebGLContextEvent> { + // according to https://www.khronos.org/registry/webgl/specs/1.0/#5.15 this is + // additional information or the empty string if no additional information is + // available. + let status_message = DOMString::new(); + reflect_dom_object( + box WebGLContextEvent::new_inherited(status_message), + global_ref, + WebGLContextEventBinding::Wrap) + } + pub fn new(global: GlobalRef, type_: Atom, bubbles: EventBubbles, |