diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-07 11:09:14 -0500 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-07 11:09:14 -0500 |
commit | 1e3edf3ca454b91dfdc267c5b2f4347eda9b7cb6 (patch) | |
tree | 3f9cbdf968bf83453f8f0ee5bb3c26495925346c /components/script/layout_interface.rs | |
parent | f56848a0e8a9137f128088d1dd0f86e11fad841a (diff) | |
parent | aea03b2f921a41bf78791a877539f1fafab887dd (diff) | |
download | servo-1e3edf3ca454b91dfdc267c5b2f4347eda9b7cb6.tar.gz servo-1e3edf3ca454b91dfdc267c5b2f4347eda9b7cb6.zip |
Auto merge of #11656 - Ms2ger:reduce-dom-exposure, r=nox
Reduce the amount of dom code used outside the script crate.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11656)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 61c99bc530b..37b6d169481 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -7,7 +7,6 @@ //! the DOM to be placed in a separate crate from layout. use app_units::Au; -use dom::node::OpaqueStyleAndLayoutData; use euclid::point::Point2D; use euclid::rect::Rect; use gfx_traits::{Epoch, LayerId}; @@ -27,7 +26,21 @@ use style::servo::Stylesheet; use url::Url; use util::ipc::OptionalOpaqueIpcSender; +pub use dom::bindings::inheritance::{CharacterDataTypeId, ElementTypeId}; +pub use dom::bindings::inheritance::{HTMLElementTypeId, NodeTypeId}; +pub use dom::bindings::js::LayoutJS; +pub use dom::characterdata::LayoutCharacterDataHelpers; +pub use dom::document::{Document, LayoutDocumentHelpers}; +pub use dom::element::{Element, LayoutElementHelpers, RawLayoutElementHelpers}; +pub use dom::htmlcanvaselement::HTMLCanvasData; +pub use dom::htmlobjectelement::is_image_data; +pub use dom::node::{CAN_BE_FRAGMENTED, HAS_CHANGED, HAS_DIRTY_DESCENDANTS, IS_DIRTY}; +pub use dom::node::LayoutNodeHelpers; +pub use dom::node::Node; +pub use dom::node::OpaqueStyleAndLayoutData; pub use dom::node::TrustedNodeAddress; +pub use dom::text::Text; + /// Asynchronous messages that script can send to layout. pub enum Msg { |