aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/wrapper_traits.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-01-22 23:50:40 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-01-23 00:57:54 +0100
commit104f5c2553606d0b26d7cf2ad9b90eb2efd94792 (patch)
tree29cc44fdafc5dcfac9a41acacc62d0bb6a3639fd /components/script_layout_interface/wrapper_traits.rs
parent5ac12b5df4406dbde1ceeb6be36be5c3162401a2 (diff)
downloadservo-104f5c2553606d0b26d7cf2ad9b90eb2efd94792.tar.gz
servo-104f5c2553606d0b26d7cf2ad9b90eb2efd94792.zip
style: Derive debug for CascadeInputs.
It no longer has anything than rules.
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r--components/script_layout_interface/wrapper_traits.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs
index 17a9172cd71..ffdc9aa95ed 100644
--- a/components/script_layout_interface/wrapper_traits.rs
+++ b/components/script_layout_interface/wrapper_traits.rs
@@ -148,7 +148,7 @@ impl<ConcreteNode> Iterator for TreeIterator<ConcreteNode>
/// node does not allow any parents or siblings of nodes to be accessed, to avoid races.
pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo + PartialEq + Sized {
type ConcreteNode: LayoutNode<ConcreteThreadSafeLayoutNode = Self>;
- type ConcreteElement: TElement = <Self::ConcreteNode as TNode>::ConcreteElement;
+ type ConcreteElement: TElement;
type ConcreteThreadSafeLayoutElement:
ThreadSafeLayoutElement<ConcreteThreadSafeLayoutNode = Self>
@@ -293,9 +293,11 @@ pub trait ThreadSafeLayoutElement
{
type ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<ConcreteThreadSafeLayoutElement = Self>;
- /// This type alias is just a hack to avoid writing the monstrosity after it
- /// twice.
- type ConcreteElement: TElement = <Self::ConcreteThreadSafeLayoutNode as ThreadSafeLayoutNode>::ConcreteElement;
+ /// This type alias is just a work-around to avoid writing
+ ///
+ /// <Self::ConcreteThreadSafeLayoutNode as ThreadSafeLayoutNode>::ConcreteElement
+ ///
+ type ConcreteElement: TElement;
fn as_node(&self) -> Self::ConcreteThreadSafeLayoutNode;