diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2015-01-25 02:57:38 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2015-02-01 01:54:38 +0900 |
commit | 9f57fa17d0e5b188b4c33145c659f2abf2315a22 (patch) | |
tree | cb1ef3b0e4d7933106aab59f4ceeac857260b842 /components/layout/layout_task.rs | |
parent | 8889041c1957232fe1acabb255c131686c4a924a (diff) | |
download | servo-9f57fa17d0e5b188b4c33145c659f2abf2315a22.tar.gz servo-9f57fa17d0e5b188b4c33145c659f2abf2315a22.zip |
Add LayoutJS<Node>::from_trusted_node_address()
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index b9bdc48a3ea..285e3889bf3 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -32,7 +32,7 @@ use gfx::paint_task::{PaintChan, PaintLayer}; use gfx::paint_task::Msg as PaintMsg; use layout_traits::{LayoutControlMsg, LayoutTaskFactory}; use log; -use script::dom::bindings::js::{JS, LayoutJS}; +use script::dom::bindings::js::LayoutJS; use script::dom::node::{LayoutDataRef, Node, NodeTypeId}; use script::dom::element::ElementTypeId; use script::dom::htmlelement::HTMLElementTypeId; @@ -720,7 +720,7 @@ impl LayoutTask { // FIXME(rust#16366): The following line had to be moved because of a // rustc bug. It should be in the next unsafe block. let mut node: LayoutJS<Node> = unsafe { - JS::from_trusted_node_address(data.document_root).to_layout() + LayoutJS::from_trusted_node_address(data.document_root) }; let node: &mut LayoutNode = unsafe { mem::transmute(&mut node) |