Bug 416109 - fix compile warnings, r=aaronlev, a=dsicore

This commit is contained in:
surkov.alexander@gmail.com 2008-02-08 01:35:42 -08:00
parent ea7868db1c
commit 92c7ee62af
4 changed files with 7 additions and 4 deletions

View File

@ -467,7 +467,7 @@ nsAccessNode::ScrollToPoint(PRUint32 aCoordinateType, PRInt32 aX, PRInt32 aY)
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
nsIFrame *parentFrame = frame; nsIFrame *parentFrame = frame;
while (parentFrame = parentFrame->GetParent()) while ((parentFrame = parentFrame->GetParent()))
nsAccUtils::ScrollFrameToPoint(parentFrame, frame, coords); nsAccUtils::ScrollFrameToPoint(parentFrame, frame, coords);
return NS_OK; return NS_OK;

View File

@ -1441,7 +1441,8 @@ NS_IMETHODIMP nsAccessibilityService::GetAccessible(nsIDOMNode *aNode,
if (!tableAccessible && !content->IsFocusable()) { if (!tableAccessible && !content->IsFocusable()) {
#ifdef DEBUG #ifdef DEBUG
nsRoleMapEntry *tableRoleMapEntry = nsAccUtils::GetRoleMapEntry(tableNode); nsRoleMapEntry *tableRoleMapEntry = nsAccUtils::GetRoleMapEntry(tableNode);
NS_ASSERTION(roleMapEntry && !nsCRT::strcmp(roleMapEntry->roleString, "presentation"), NS_ASSERTION(tableRoleMapEntry &&
!nsCRT::strcmp(tableRoleMapEntry->roleString, "presentation"),
"No accessible for parent table and it didn't have role of presentation"); "No accessible for parent table and it didn't have role of presentation");
#endif #endif
// Table-related descendants of presentation table are also presentation // Table-related descendants of presentation table are also presentation

View File

@ -1873,7 +1873,7 @@ nsHyperTextAccessible::ScrollSubstringToPoint(PRInt32 aStartIndex,
PRBool initialScrolled = PR_FALSE; PRBool initialScrolled = PR_FALSE;
nsIFrame *parentFrame = frame; nsIFrame *parentFrame = frame;
while (parentFrame = parentFrame->GetParent()) { while ((parentFrame = parentFrame->GetParent())) {
nsIScrollableFrame *scrollableFrame = nsnull; nsIScrollableFrame *scrollableFrame = nsnull;
CallQueryInterface(parentFrame, &scrollableFrame); CallQueryInterface(parentFrame, &scrollableFrame);
if (scrollableFrame) { if (scrollableFrame) {

View File

@ -36,9 +36,11 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsCOMPtr.h"
#include "nsRootAccessibleWrap.h" #include "nsRootAccessibleWrap.h"
#include "mozDocAccessible.h"
#include "nsCOMPtr.h"
#include "nsIWidget.h" #include "nsIWidget.h"
#include "nsIViewManager.h" #include "nsIViewManager.h"