From d58b422513b4ce7bb4c062adf5f625085be0c7db Mon Sep 17 00:00:00 2001 From: "kyle.yuan%sun.com" Date: Thu, 19 Dec 2002 09:35:00 +0000 Subject: [PATCH] Bug 163816 Leaking 1 nsAccessibilityService and a bunch of nsGenericAccessible's r=aaronl, sr=peterv fix the wrong type cast in nsRootAccessible::AddAccessibleEventListener and get rid of the strong pointer to nsHTMLIFrameAccessible in nsHTMLIFrameRootAccessible --- .../src/base/nsAccessibilityService.cpp | 18 +++--- accessible/src/base/nsAccessible.cpp | 12 ++-- accessible/src/base/nsGenericAccessible.cpp | 1 - accessible/src/base/nsRootAccessible.cpp | 10 +-- accessible/src/base/nsTextAccessible.cpp | 1 - .../src/html/nsHTMLIFrameRootAccessible.cpp | 63 +++---------------- .../src/html/nsHTMLIFrameRootAccessible.h | 24 +------ 7 files changed, 31 insertions(+), 98 deletions(-) diff --git a/accessible/src/base/nsAccessibilityService.cpp b/accessible/src/base/nsAccessibilityService.cpp index 47d761b4c9b..87c8802609a 100644 --- a/accessible/src/base/nsAccessibilityService.cpp +++ b/accessible/src/base/nsAccessibilityService.cpp @@ -103,7 +103,6 @@ nsAccessibilityService::nsAccessibilityService() { - NS_INIT_ISUPPORTS(); nsLayoutAtoms::AddRefAtoms(); } @@ -296,8 +295,12 @@ nsAccessibilityService::CreateIFrameAccessible(nsIDOMNode* aDOMNode, nsIAccessib nsCOMPtr innerWeakShell = do_GetWeakReference(innerPresShell); + // In these variable names, "outer" relates to the nsHTMLIFrameAccessible, + // as opposed to the nsHTMLIFrameRootAccessible which is "inner". + // The outer node is a or