Make the dom module private.

This commit is contained in:
Ms2ger 2016-06-08 14:49:08 +02:00
parent 1bc0862214
commit 4fca766bbd
3 changed files with 9 additions and 4 deletions

View file

@ -105,7 +105,7 @@ pub mod clipboard_provider;
mod devtools;
pub mod document_loader;
#[macro_use]
pub mod dom;
mod dom;
pub mod fetch;
pub mod layout_wrapper;
mod mem;

View file

@ -5,6 +5,11 @@
pub use dom::bindings::str::{ByteString, DOMString};
pub use dom::headers::normalize_value;
// For compile-fail tests only.
pub use dom::bindings::cell::DOMRefCell;
pub use dom::bindings::js::JS;
pub use dom::node::Node;
pub mod size_of {
use dom::characterdata::CharacterData;
use dom::element::Element;

View file

@ -7,9 +7,9 @@
extern crate script;
use script::dom::bindings::cell::DOMRefCell;
use script::dom::bindings::js::JS;
use script::dom::node::Node;
use script::test::DOMRefCell;
use script::test::JS;
use script::test::Node;
struct Foo {
bar: DOMRefCell<JS<Node>>