Bug 851892 followup. Disable most of Rule::IsKnownLive for now to reopen CLOSED TREE
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 20 Jan 2017 13:57:42 -0500
changeset 358466 621e14f5c951442aaafa9703ecde8af8933fbc98
parent 358465 5392e837645f9e1788ac288bb1c8ed0e3c026d20
child 358467 7ceb7d18b5e090f6283fbe7062bfd194f5863783
push id10621
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 16:02:43 +0000
treeherdermozilla-aurora@dca7b42e6c67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs851892
milestone53.0a1
Bug 851892 followup. Disable most of Rule::IsKnownLive for now to reopen CLOSED TREE
layout/style/nsCSSRules.cpp
--- 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