mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 416109 - fix compile warnings, r=aaronlev, a=dsicore
This commit is contained in:
parent
ea7868db1c
commit
92c7ee62af
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user