mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Derive PartialEq for ServoShadowRoot
This commit is contained in:
parent
57fa6b1c51
commit
00178aff4d
1 changed files with 1 additions and 8 deletions
|
@ -166,7 +166,7 @@ impl<'ln> NodeInfo for ServoLayoutNode<'ln> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, PartialEq)]
|
||||
pub struct ServoShadowRoot<'a> {
|
||||
/// The wrapped shadow root.
|
||||
shadow_root: LayoutDom<ShadowRoot>,
|
||||
|
@ -181,13 +181,6 @@ impl<'sr> Debug for ServoShadowRoot<'sr> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> PartialEq for ServoShadowRoot<'a> {
|
||||
#[inline]
|
||||
fn eq(&self, other: &ServoShadowRoot) -> bool {
|
||||
self.shadow_root == other.shadow_root
|
||||
}
|
||||
}
|
||||
|
||||
impl<'sr> TShadowRoot for ServoShadowRoot<'sr> {
|
||||
type ConcreteNode = ServoLayoutNode<'sr>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue