mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove unused ThreadSafeLayoutNode::traverse_postorder_mut.
This commit is contained in:
parent
c018863201
commit
bb444df679
1 changed files with 0 additions and 23 deletions
|
@ -36,7 +36,6 @@ use css::node_style::StyledNode;
|
|||
use incremental::RestyleDamage;
|
||||
use data::{LayoutDataFlags, LayoutDataWrapper, PrivateLayoutData};
|
||||
use opaque_node::OpaqueNodeMethods;
|
||||
use traversal::PostorderNodeMutTraversal;
|
||||
|
||||
use gfx::display_list::OpaqueNode;
|
||||
use script::dom::attr::AttrValue;
|
||||
|
@ -771,28 +770,6 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
|
|||
self.node.mutate_layout_data()
|
||||
}
|
||||
|
||||
/// Traverses the tree in postorder.
|
||||
///
|
||||
/// TODO(pcwalton): Offer a parallel version with a compatible API.
|
||||
pub fn traverse_postorder_mut<T:PostorderNodeMutTraversal>(&mut self, traversal: &mut T)
|
||||
-> bool {
|
||||
if traversal.should_prune(self) {
|
||||
return true
|
||||
}
|
||||
|
||||
let mut opt_kid = self.first_child();
|
||||
while let Some(mut kid) = opt_kid {
|
||||
if !kid.traverse_postorder_mut(traversal) {
|
||||
return false
|
||||
}
|
||||
unsafe {
|
||||
opt_kid = kid.next_sibling()
|
||||
}
|
||||
}
|
||||
|
||||
traversal.process(self)
|
||||
}
|
||||
|
||||
pub fn is_ignorable_whitespace(&self) -> bool {
|
||||
unsafe {
|
||||
let text: LayoutJS<Text> = match TextCast::to_layout_js(self.get_jsmanaged()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue