mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add trait DomObjectWrap to provide WRAP function
This commit is contained in:
parent
ca29399bab
commit
3ea6d87bcc
353 changed files with 327 additions and 1236 deletions
|
@ -29,11 +29,7 @@ impl CompositionEvent {
|
|||
}
|
||||
|
||||
pub fn new_uninitialized(window: &Window) -> DomRoot<CompositionEvent> {
|
||||
reflect_dom_object(
|
||||
Box::new(CompositionEvent::new_inherited()),
|
||||
window,
|
||||
CompositionEventBinding::Wrap,
|
||||
)
|
||||
reflect_dom_object(Box::new(CompositionEvent::new_inherited()), window)
|
||||
}
|
||||
|
||||
pub fn new(
|
||||
|
@ -51,7 +47,6 @@ impl CompositionEvent {
|
|||
data: data,
|
||||
}),
|
||||
window,
|
||||
CompositionEventBinding::Wrap,
|
||||
);
|
||||
ev.uievent
|
||||
.InitUIEvent(type_, can_bubble, cancelable, view, detail);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue