Bug 1089417 patch 6 - Pass the previous CSS rule processor to the constructor of the new one (when we replace one with another). r=heycam

This is needed for patch 7.
This commit is contained in:
L. David Baron
2014-12-05 15:50:00 -08:00
parent ba3dfb48ef
commit 57696e47bf
4 changed files with 36 additions and 7 deletions

View File

@@ -52,9 +52,12 @@ public:
// aScopeElement must be non-null iff aSheetType is
// nsStyleSet::eScopedDocSheet.
// aPreviousCSSRuleProcessor is the rule processor (if any) that this
// one is replacing.
nsCSSRuleProcessor(const sheet_array_type& aSheets,
uint8_t aSheetType,
mozilla::dom::Element* aScopeElement);
mozilla::dom::Element* aScopeElement,
nsCSSRuleProcessor* aPreviousCSSRuleProcessor);
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_CLASS(nsCSSRuleProcessor)