mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Removed unnecessary return and moved crate import to script.rs
This commit is contained in:
parent
af548696bb
commit
b1f4e04ee2
2 changed files with 4 additions and 3 deletions
|
@ -2,8 +2,6 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
extern crate time;
|
|
||||||
|
|
||||||
use dom::bindings::codegen::EventBinding;
|
use dom::bindings::codegen::EventBinding;
|
||||||
use dom::bindings::codegen::EventBinding::EventConstants;
|
use dom::bindings::codegen::EventBinding::EventConstants;
|
||||||
use dom::bindings::js::JS;
|
use dom::bindings::js::JS;
|
||||||
|
@ -15,6 +13,8 @@ use servo_util::str::DOMString;
|
||||||
|
|
||||||
use geom::point::Point2D;
|
use geom::point::Point2D;
|
||||||
|
|
||||||
|
use time;
|
||||||
|
|
||||||
pub enum Event_ {
|
pub enum Event_ {
|
||||||
ResizeEvent(uint, uint),
|
ResizeEvent(uint, uint),
|
||||||
ReflowEvent,
|
ReflowEvent,
|
||||||
|
@ -130,7 +130,7 @@ impl Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn TimeStamp(&self) -> u64 {
|
pub fn TimeStamp(&self) -> u64 {
|
||||||
return self.timestamp;
|
self.timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn InitEvent(&mut self,
|
pub fn InitEvent(&mut self,
|
||||||
|
|
|
@ -24,6 +24,7 @@ extern crate js;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate native;
|
extern crate native;
|
||||||
extern crate serialize;
|
extern crate serialize;
|
||||||
|
extern crate time;
|
||||||
#[phase(syntax)]
|
#[phase(syntax)]
|
||||||
extern crate servo_macros = "macros";
|
extern crate servo_macros = "macros";
|
||||||
extern crate servo_net = "net";
|
extern crate servo_net = "net";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue