aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglcontextevent.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-12-17 02:13:13 -0500
committerGitHub <noreply@github.com>2019-12-17 02:13:13 -0500
commit6ccad53937c2dcc8d1d24d9d924e236927211cf8 (patch)
treede342c3824e8ad941ced3ce11d72cd7229ba12b1 /components/script/dom/webglcontextevent.rs
parenta8b8f4647622dc88e2d19c04de3948795dcc594d (diff)
parentec70f426383eac8b2b87271f6e50bd9afb0632f2 (diff)
downloadservo-6ccad53937c2dcc8d1d24d9d924e236927211cf8.tar.gz
servo-6ccad53937c2dcc8d1d24d9d924e236927211cf8.zip
Auto merge of #25254 - pshaughn:stop_creating_outofspec_events, r=jdm
Removed createEvent cases, removed now-unused new_uninitializeds <!-- Please describe your changes on the following line: --> document.createEvent was creating some event types WHATWG now says shouldn't be created that way. This was the only caller of a few new_uninitialized methods, so those are removed too. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25137 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/webglcontextevent.rs')
-rw-r--r--components/script/dom/webglcontextevent.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/components/script/dom/webglcontextevent.rs b/components/script/dom/webglcontextevent.rs
index 5bc153ddccd..e4b0efe0360 100644
--- a/components/script/dom/webglcontextevent.rs
+++ b/components/script/dom/webglcontextevent.rs
@@ -42,18 +42,6 @@ impl WebGLContextEvent {
}
}
- pub fn new_uninitialized(window: &Window) -> DomRoot<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::new(WebGLContextEvent::new_inherited(status_message)),
- window,
- WebGLContextEventBinding::Wrap,
- )
- }
-
pub fn new(
window: &Window,
type_: Atom,