зеркало из https://github.com/mozilla/gecko-dev.git
Bug 416109 - fix compile warnings, r=aaronlev, a=dsicore
This commit is contained in:
Родитель
e2ea4015d1
Коммит
48351b4a17
|
@ -467,7 +467,7 @@ nsAccessNode::ScrollToPoint(PRUint32 aCoordinateType, PRInt32 aX, PRInt32 aY)
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsIFrame *parentFrame = frame;
|
||||
while (parentFrame = parentFrame->GetParent())
|
||||
while ((parentFrame = parentFrame->GetParent()))
|
||||
nsAccUtils::ScrollFrameToPoint(parentFrame, frame, coords);
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -1441,7 +1441,8 @@ NS_IMETHODIMP nsAccessibilityService::GetAccessible(nsIDOMNode *aNode,
|
|||
if (!tableAccessible && !content->IsFocusable()) {
|
||||
#ifdef DEBUG
|
||||
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");
|
||||
#endif
|
||||
// Table-related descendants of presentation table are also presentation
|
||||
|
|
|
@ -1873,7 +1873,7 @@ nsHyperTextAccessible::ScrollSubstringToPoint(PRInt32 aStartIndex,
|
|||
|
||||
PRBool initialScrolled = PR_FALSE;
|
||||
nsIFrame *parentFrame = frame;
|
||||
while (parentFrame = parentFrame->GetParent()) {
|
||||
while ((parentFrame = parentFrame->GetParent())) {
|
||||
nsIScrollableFrame *scrollableFrame = nsnull;
|
||||
CallQueryInterface(parentFrame, &scrollableFrame);
|
||||
if (scrollableFrame) {
|
||||
|
|
|
@ -36,9 +36,11 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsRootAccessibleWrap.h"
|
||||
|
||||
#include "mozDocAccessible.h"
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "nsIViewManager.h"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче