Bug 1365873 - stylo: Fix toolkit/content/tests/chrome/test_bug437844.xul crash. r?emilio draft
authorFernando Jimenez Moreno <ferjmoreno@gmail.com>
Tue, 30 May 2017 13:03:57 +0200
changeset 586432 289f67c46e985c63001493d74bc5cecfb03d5b49
parent 585921 cce4d83d2b99ffedbd67a2f40ce26e53e9ae27ab
child 630977 47d62b1b51c38059cacfd0954dc2acf83b49f438
push id61394
push userferjmoreno@gmail.com
push dateTue, 30 May 2017 11:04:35 +0000
reviewersemilio
bugs1365873, 437844
milestone55.0a1
Bug 1365873 - stylo: Fix toolkit/content/tests/chrome/test_bug437844.xul crash. r?emilio MozReview-Commit-ID: GvKuA07PbUT
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -9643,22 +9643,18 @@ PresShell::Observe(nsISupports* aSubject
         WalkFramesThroughPlaceholders(mPresContext, rootFrame,
                                       ReframeImageBoxes, &changeList);
         // Mark ourselves as not safe to flush while we're doing frame
         // construction.
         {
           nsAutoScriptBlocker scriptBlocker;
           ++mChangeNestCount;
           RestyleManager* restyleManager = mPresContext->RestyleManager();
-          if (restyleManager->IsServo()) {
-            MOZ_CRASH("stylo: PresShell::Observe(\"chrome-flush-skin-caches\") "
-                      "not implemented for Servo-backed style system");
-          }
-          restyleManager->AsGecko()->ProcessRestyledFrames(changeList);
-          restyleManager->AsGecko()->FlushOverflowChangedTracker();
+          restyleManager->ProcessRestyledFrames(changeList);
+          restyleManager->FlushOverflowChangedTracker();
           --mChangeNestCount;
         }
       }
     }
     return NS_OK;
   }
 #endif