mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
This commit is contained in:
parent
b8900782b0
commit
466faac2a5
223 changed files with 4414 additions and 4105 deletions
|
@ -12,7 +12,7 @@ use dom::bindings::global;
|
|||
use dom::bindings::js::{MutNullableJS, JSRef, RootedReference, Temporary, OptionalSettable};
|
||||
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::event::{Event, EventTypeId, UIEventTypeId};
|
||||
use dom::event::{Event, EventTypeId};
|
||||
use dom::window::Window;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
|
@ -28,7 +28,7 @@ pub struct UIEvent {
|
|||
|
||||
impl UIEventDerived for Event {
|
||||
fn is_uievent(&self) -> bool {
|
||||
*self.type_id() == UIEventTypeId
|
||||
*self.type_id() == EventTypeId::UIEvent
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ impl UIEvent {
|
|||
}
|
||||
|
||||
pub fn new_uninitialized(window: JSRef<Window>) -> Temporary<UIEvent> {
|
||||
reflect_dom_object(box UIEvent::new_inherited(UIEventTypeId),
|
||||
reflect_dom_object(box UIEvent::new_inherited(EventTypeId::UIEvent),
|
||||
global::Window(window),
|
||||
UIEventBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue