Backing out accidental checkin for bug 357583
git-svn-id: svn://10.0.0.236/trunk@225545 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -204,8 +204,6 @@
|
||||
static NS_DEFINE_CID(kCSSStyleSheetCID, NS_CSS_STYLESHEET_CID);
|
||||
static NS_DEFINE_IID(kRangeCID, NS_RANGE_CID);
|
||||
|
||||
PRBool nsIPresShell::gIsAccessibilityActive = PR_FALSE;
|
||||
|
||||
// convert a color value to a string, in the CSS format #RRGGBB
|
||||
// * - initially created for bugs 31816, 20760, 22963
|
||||
static void ColorToString(nscolor aColor, nsAutoString &aString);
|
||||
@@ -1421,6 +1419,7 @@ NS_NewPresShell(nsIPresShell** aInstancePtrResult)
|
||||
|
||||
PresShell::PresShell()
|
||||
{
|
||||
mIsAccessibilityActive = PR_FALSE;
|
||||
mSelection = nsnull;
|
||||
#ifdef MOZ_REFLOW_PERF
|
||||
mReflowCountMgr = new ReflowCountMgr();
|
||||
@@ -1578,9 +1577,6 @@ PresShell::Init(nsIDocument* aDocument,
|
||||
os->AddObserver(this, "user-sheet-removed", PR_FALSE);
|
||||
#ifdef MOZ_XUL
|
||||
os->AddObserver(this, "chrome-flush-skin-caches", PR_FALSE);
|
||||
#endif
|
||||
#ifdef ACCESSIBILITY
|
||||
os->AddObserver(this, "a11y-init-or-shutdown", PR_FALSE);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -3347,7 +3343,7 @@ PresShell::CancelAllPendingReflows()
|
||||
#ifdef ACCESSIBILITY
|
||||
void nsIPresShell::InvalidateAccessibleSubtree(nsIContent *aContent)
|
||||
{
|
||||
if (gIsAccessibilityActive) {
|
||||
if (mIsAccessibilityActive) {
|
||||
nsCOMPtr<nsIAccessibilityService> accService =
|
||||
do_GetService("@mozilla.org/accessibilityService;1");
|
||||
if (accService) {
|
||||
@@ -5682,6 +5678,7 @@ PresShell::HandleEventInternal(nsEvent* aEvent, nsIView *aView,
|
||||
// We'll make sure the right number of Addref's occur before
|
||||
// handing this back to the accessibility client
|
||||
NS_STATIC_CAST(nsAccessibleEvent*, aEvent)->accessible = acc;
|
||||
mIsAccessibilityActive = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
@@ -6400,11 +6397,6 @@ PresShell::Observe(nsISupports* aSubject,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
if (!nsCRT::strcmp(aTopic, "a11y-init-or-shutdown")) {
|
||||
gIsAccessibilityActive = aData && *aData == '1';
|
||||
}
|
||||
#endif
|
||||
NS_WARNING("unrecognized topic in PresShell::Observe");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user