fixup! Merge new_with_pseudo_without_self() and new_with_pseudo() into with_pseudo()

This commit is contained in:
Simon Sapin 2014-04-11 21:26:16 +01:00
parent 7f139b2b07
commit d9c6ac5ca1

View file

@ -498,7 +498,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
} }
/// Creates a new `ThreadSafeLayoutNode` for the same `LayoutNode` /// Creates a new `ThreadSafeLayoutNode` for the same `LayoutNode`
/// with a differet pseudo-element type. /// with a different pseudo-element type.
pub fn with_pseudo(&self, pseudo: PseudoElementType) -> ThreadSafeLayoutNode<'ln> { pub fn with_pseudo(&self, pseudo: PseudoElementType) -> ThreadSafeLayoutNode<'ln> {
ThreadSafeLayoutNode { ThreadSafeLayoutNode {
node: self.node.clone(), node: self.node.clone(),