fix visibility warnings in script crate (#2044)

This commit is contained in:
Manish Goregaokar 2014-04-06 02:53:55 +05:30
parent 57f63b350e
commit c397c5233d
6 changed files with 6 additions and 6 deletions

View file

@ -11,7 +11,7 @@ use servo_util::str::DOMString;
#[repr(uint)]
#[deriving(Show, Encodable)]
enum DOMErrorName {
pub enum DOMErrorName {
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR,
HierarchyRequestError = DOMExceptionConstants::HIERARCHY_REQUEST_ERR,
WrongDocumentError = DOMExceptionConstants::WRONG_DOCUMENT_ERR,

View file

@ -26,7 +26,7 @@ pub enum EventTargetTypeId {
}
#[deriving(Eq,Encodable)]
struct EventListenerEntry {
pub struct EventListenerEntry {
phase: ListenerPhase,
listener: EventListener
}

View file

@ -14,7 +14,7 @@ use servo_util::str::DOMString;
use collections::hashmap::HashMap;
#[deriving(Encodable)]
enum FormDatum {
pub enum FormDatum {
StringData(DOMString),
BlobData { blob: JS<Blob>, name: DOMString }
}

View file

@ -573,7 +573,7 @@ impl NodeHelpers for JS<Node> {
// Iteration and traversal
//
type ChildElementIterator<'a> = Map<'a, JS<Node>,
pub type ChildElementIterator<'a> = Map<'a, JS<Node>,
JS<Element>,
Filter<'a, JS<Node>, AbstractNodeChildrenIterator>>;

View file

@ -9,7 +9,7 @@ use dom::node::{Node, NodeHelpers};
use dom::window::Window;
#[deriving(Encodable)]
enum NodeListType {
pub enum NodeListType {
Simple(~[JS<Node>]),
Children(JS<Node>)
}

View file

@ -50,7 +50,7 @@ pub struct JSFile {
url: Url
}
type JSResult = ~[JSFile];
pub type JSResult = ~[JSFile];
enum CSSMessage {
CSSTaskNewFile(StylesheetProvenance),