Bug 615841 ourA11yNotification is only used in nsFrameManager::ReResolveStyleContext ifdef ACCESSIBILITY
authortimeless@mozdev.org
Sat, 04 Dec 2010 11:07:53 +0100
changeset 58609 6c885a625cb99ff6f7eb239ad5ef99605bf03a61
parent 58608 ad075e3f44690ff340c3ad74e999185ce2186b40
child 58610 3cfa2011c8318c0b92e44cc3168fb7e3139aa0a5
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs615841
milestone2.0b8pre
Bug 615841 ourA11yNotification is only used in nsFrameManager::ReResolveStyleContext ifdef ACCESSIBILITY r+a=bz
layout/base/nsFrameManager.cpp
--- a/layout/base/nsFrameManager.cpp
+++ b/layout/base/nsFrameManager.cpp
@@ -1408,20 +1408,20 @@ nsFrameManager::ReResolveStyleContext(ns
             aChangeList->AppendChange(aFrame, content,
                                       nsChangeHint_ReconstructFrame);
           }
         }      
       }
     }
 
     if (!(aMinChange & nsChangeHint_ReconstructFrame)) {
-      A11yNotificationType ourA11yNotification = eDontNotify;
       DesiredA11yNotifications kidsDesiredA11yNotification =
         aDesiredA11yNotifications;
 #ifdef ACCESSIBILITY
+      A11yNotificationType ourA11yNotification = eDontNotify;
       // Notify a11y for primary frame only if it's a root frame of visibility
       // changes or its parent frame was hidden while it stays visible and
       // it is not inside a {ib} split or is the first frame of {ib} split.
       if (mPresShell->IsAccessibilityActive() && !aFrame->GetPrevContinuation() &&
           !nsLayoutUtils::FrameIsNonFirstInIBSplit(aFrame)) {
         if (aDesiredA11yNotifications == eSendAllNotifications) {
           PRBool isFrameVisible = newContext->GetStyleVisibility()->IsVisible();
           if (isFrameVisible != wasFrameVisible) {