Bug 1395719: Minimal cleanup when using the accessibility service. draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 07 Sep 2017 14:26:51 +0200
changeset 660781 fe9033caced6a9206e19754563cba469dcc6a497
parent 660780 74c40dd35b6a2de1a1004e9895529f49cc98ba49
child 660782 18a890c863887d57c5b8ece352644c664d4b07ee
push id78527
push userbmo:emilio@crisal.io
push dateThu, 07 Sep 2017 14:05:42 +0000
bugs1395719
milestone57.0a1
Bug 1395719: Minimal cleanup when using the accessibility service. MozReview-Commit-ID: Enexvl1motp
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -7922,18 +7922,17 @@ nsCSSFrameConstructor::ContentAppended(n
 #ifdef DEBUG
   if (gReallyNoisyContentUpdates) {
     printf("nsCSSFrameConstructor::ContentAppended: resulting frame model:\n");
     parentFrame->List(stdout, 0);
   }
 #endif
 
 #ifdef ACCESSIBILITY
-  nsAccessibilityService* accService = nsIPresShell::AccService();
-  if (accService) {
+  if (nsAccessibilityService* accService = nsIPresShell::AccService()) {
     accService->ContentRangeInserted(mPresShell, aContainer,
                                      aFirstNewContent, nullptr);
   }
 #endif
 }
 
 #ifdef MOZ_XUL