Bug 1395719: Minimal cleanup when using the accessibility service.
MozReview-Commit-ID: Enexvl1motp
--- 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