mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 378776. Follow-up to original checkin -- remove 2 more cases of GetNumberOfShells(). r=smaug
This commit is contained in:
parent
f785abd6a0
commit
da87a6ca1f
@ -289,10 +289,7 @@ nsAccessibilityService::GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIW
|
||||
if (!document)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
#ifdef DEBUG_A11Y
|
||||
PRInt32 shells = document->GetNumberOfShells();
|
||||
NS_ASSERTION(shells > 0,"Error no shells!");
|
||||
#endif
|
||||
NS_ASSERTION(document->GetPrimaryShell(),"Error no shells!");
|
||||
|
||||
// do_GetWR only works into a |nsCOMPtr| :-(
|
||||
nsCOMPtr<nsIWeakReference> weakShell =
|
||||
|
@ -140,7 +140,7 @@ NS_IMETHODIMP nsAccessProxy::HandleEvent(nsIDOMEvent* aEvent)
|
||||
domNode->GetOwnerDocument(getter_AddRefs(domDoc));
|
||||
if (domDoc) {
|
||||
doc = do_QueryInterface(domDoc);
|
||||
if (doc && doc->GetNumberOfShells()>0) {
|
||||
if (doc) {
|
||||
presShell = doc->GetPrimaryShell();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user