mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Separate the DOM and layout into separate crates.
This commit is contained in:
parent
0ea1a94f8e
commit
bf82bc54f3
156 changed files with 192 additions and 157 deletions
17
src/components/script/dom/eventtarget.rs
Normal file
17
src/components/script/dom/eventtarget.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
|
||||
use dom::bindings::utils::WrapperCache;
|
||||
|
||||
pub struct EventTarget {
|
||||
wrapper: WrapperCache
|
||||
}
|
||||
|
||||
pub impl EventTarget {
|
||||
fn new() -> ~EventTarget {
|
||||
~EventTarget {
|
||||
wrapper: WrapperCache::new()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue