From 502f40071b82e6297a977105672b6bd2788fa8c1 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Thu, 22 Oct 2015 19:22:38 +1100 Subject: [PATCH] Bug 1208951 - Part 6: Add method to compare nsCSSPropertySets for equality. r=birtles --- layout/style/nsCSSPropertySet.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layout/style/nsCSSPropertySet.h b/layout/style/nsCSSPropertySet.h index 6416df61e3bf..06ce4e2c5c90 100644 --- a/layout/style/nsCSSPropertySet.h +++ b/layout/style/nsCSSPropertySet.h @@ -8,6 +8,7 @@ #define nsCSSPropertySet_h__ #include "mozilla/ArrayUtils.h" +#include "mozilla/PodOperations.h" #include "nsCSSProperty.h" #include // for CHAR_BIT @@ -62,6 +63,10 @@ public: } } + bool Equals(const nsCSSPropertySet& aOther) const { + return mozilla::PodEqual(mProperties, aOther.mProperties); + } + private: typedef unsigned long property_set_type; public: