mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Implement JSManaged for DOM objects.
This commit is contained in:
parent
061269f963
commit
625325434b
137 changed files with 3644 additions and 2778 deletions
|
@ -14,6 +14,7 @@ use std::util::replace;
|
|||
use std::result;
|
||||
use extra::arc::{Arc,MutexArc};
|
||||
use extra::url::Url;
|
||||
use extra::serialize::{Encoder, Encodable};
|
||||
|
||||
pub enum Msg {
|
||||
/// Tell the cache that we may need a particular image soon. Must be posted
|
||||
|
@ -80,6 +81,11 @@ pub struct ImageCacheTask {
|
|||
chan: SharedChan<Msg>,
|
||||
}
|
||||
|
||||
impl<S: Encoder> Encodable<S> for ImageCacheTask {
|
||||
fn encode(&self, _: &mut S) {
|
||||
}
|
||||
}
|
||||
|
||||
type DecoderFactory = fn() -> proc(&[u8]) -> Option<Image>;
|
||||
|
||||
pub fn ImageCacheTask(resource_task: ResourceTask) -> ImageCacheTask {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue