Bug 676048: Followup to add more comments.
authorKyle Huey <khuey@kylehuey.com>
Mon, 08 Aug 2011 08:34:57 -0400
changeset 74177 e1bc7f08fa696189fc939cfef235d126373ae431
parent 73997 9c7ab0a15292530bd8b908f1433e87545c60ff82
child 74178 63c1f6f5ee0352e646703e5316bcd34ee59134ca
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
bugs676048
milestone8.0a1
Bug 676048: Followup to add more comments.
layout/style/nsCSSRuleProcessor.cpp
--- a/layout/style/nsCSSRuleProcessor.cpp
+++ b/layout/style/nsCSSRuleProcessor.cpp
@@ -136,20 +136,24 @@ struct RuleValue : RuleSelectorPair {
 };
 
 // ------------------------------
 // Rule hash table
 //
 
 // Uses any of the sets of ops below.
 struct RuleHashTableEntry : public PLDHashEntryHdr {
+  // If you add members that have heap allocated memory be sure to change the
+  // logic in RuleHashTableSizeOfEnumerator.
   nsTArray<RuleValue> mRules;
 };
 
 struct RuleHashTagTableEntry : public RuleHashTableEntry {
+  // If you add members that have heap allocated memory be sure to change the
+  // logic in RuleHash::SizeOf.
   nsCOMPtr<nsIAtom> mTag;
 };
 
 static PLDHashNumber
 RuleHash_CIHashKey(PLDHashTable *table, const void *key)
 {
   nsIAtom *atom = const_cast<nsIAtom*>(static_cast<const nsIAtom*>(key));