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 377726 621e14f5c951442aaafa9703ecde8af8933fbc98
parent 377725 5392e837645f9e1788ac288bb1c8ed0e3c026d20
child 377727 7ceb7d18b5e090f6283fbe7062bfd194f5863783
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs851892
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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