Bug 851892 followup. Disable most of Rule::IsKnownLive for now to reopen CLOSED TREE
--- a/layout/style/nsCSSRules.cpp
+++ b/layout/style/nsCSSRules.cpp
@@ -78,27 +78,32 @@ Rule::IsCCLeaf() const
bool
Rule::IsKnownLive() const
{
if (IsBlack()) {
return true;
}
+#if 1
+ return false;
+#else
+ // Disabled pending bug 1332704 getting resolved for now.
StyleSheet* sheet = GetStyleSheet();
if (!sheet) {
return false;
}
if (!sheet->IsOwnedByDocument()) {
return false;
}
return nsCCUncollectableMarker::InGeneration(
sheet->GetAssociatedDocument()->GetMarkedCCGeneration());
+#endif
}
NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_BEGIN(Rule)
return tmp->IsCCLeaf() || tmp->IsKnownLive();
NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_END
NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_IN_CC_BEGIN(Rule)
// Please see documentation for nsCycleCollectionParticipant::CanSkip* for why