aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 7668c9ff272..13fcdc41df9 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -444,6 +444,11 @@ impl<'le> TElement for ServoLayoutElement<'le> {
}
}
+impl<'le> PartialEq for ServoLayoutElement<'le> {
+ fn eq(&self, other: &Self) -> bool {
+ self.as_node() == other.as_node()
+ }
+}
impl<'le> ServoLayoutElement<'le> {
fn from_layout_js(el: LayoutJS<Element>) -> ServoLayoutElement<'le> {