mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Allow StyleSource to be compared.
This commit is contained in:
parent
63533ce72a
commit
3ebd48039e
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,12 @@ pub enum StyleSource {
|
||||||
Declarations(Arc<Locked<PropertyDeclarationBlock>>),
|
Declarations(Arc<Locked<PropertyDeclarationBlock>>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl PartialEq for StyleSource {
|
||||||
|
fn eq(&self, other: &Self) -> bool {
|
||||||
|
self.ptr_equals(other)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl StyleSource {
|
impl StyleSource {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn ptr_equals(&self, other: &Self) -> bool {
|
fn ptr_equals(&self, other: &Self) -> bool {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue