style: Allow ApplicableDeclarationBlocks to be compared.

We'll need this to cache pres hints, which generate these.
This commit is contained in:
Emilio Cobos Álvarez 2017-05-29 21:38:21 +02:00
parent 3ebd48039e
commit 544e0f4cd6
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1350,7 +1350,7 @@ impl Rule {
/// This represents the declarations in a given declaration block for a given
/// importance.
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct ApplicableDeclarationBlock {
/// The style source, either a style rule, or a property declaration block.
#[cfg_attr(feature = "servo", ignore_heap_size_of = "Arc")]