mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
fix visibility warnings in script crate (#2044)
This commit is contained in:
parent
57f63b350e
commit
c397c5233d
6 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -26,7 +26,7 @@ pub enum EventTargetTypeId {
|
|||
}
|
||||
|
||||
#[deriving(Eq,Encodable)]
|
||||
struct EventListenerEntry {
|
||||
pub struct EventListenerEntry {
|
||||
phase: ListenerPhase,
|
||||
listener: EventListener
|
||||
}
|
||||
|
|
|
@ -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 }
|
||||
}
|
||||
|
|
|
@ -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>>;
|
||||
|
||||
|
|
|
@ -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>)
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ pub struct JSFile {
|
|||
url: Url
|
||||
}
|
||||
|
||||
type JSResult = ~[JSFile];
|
||||
pub type JSResult = ~[JSFile];
|
||||
|
||||
enum CSSMessage {
|
||||
CSSTaskNewFile(StylesheetProvenance),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue