mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 753067 - Fix some warnings. r=dbolter
This commit is contained in:
parent
83c464c885
commit
bc0a72b7a7
@ -632,9 +632,9 @@ ApplicationAccessibleWrap::Init()
|
|||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv)) {
|
||||||
// init atk-bridge
|
// init atk-bridge
|
||||||
(*sAtkBridge.init)();
|
(*sAtkBridge.init)();
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
MAI_LOG_DEBUG(("Fail to load lib: %s\n", sAtkBridge.libName));
|
MAI_LOG_DEBUG(("Fail to load lib: %s\n", sAtkBridge.libName));
|
||||||
|
}
|
||||||
|
|
||||||
if (!sToplevel_event_hook_added) {
|
if (!sToplevel_event_hook_added) {
|
||||||
sToplevel_event_hook_added = true;
|
sToplevel_event_hook_added = true;
|
||||||
|
@ -1382,10 +1382,11 @@ nsresult
|
|||||||
nsAccessibleWrap::FireAtkShowHideEvent(AccEvent* aEvent,
|
nsAccessibleWrap::FireAtkShowHideEvent(AccEvent* aEvent,
|
||||||
AtkObject *aObject, bool aIsAdded)
|
AtkObject *aObject, bool aIsAdded)
|
||||||
{
|
{
|
||||||
if (aIsAdded)
|
if (aIsAdded) {
|
||||||
MAI_LOG_DEBUG(("\n\nReceived: Show event\n"));
|
MAI_LOG_DEBUG(("\n\nReceived: Show event\n"));
|
||||||
else
|
} else {
|
||||||
MAI_LOG_DEBUG(("\n\nReceived: Hide event\n"));
|
MAI_LOG_DEBUG(("\n\nReceived: Hide event\n"));
|
||||||
|
}
|
||||||
|
|
||||||
PRInt32 indexInParent = getIndexInParentCB(aObject);
|
PRInt32 indexInParent = getIndexInParentCB(aObject);
|
||||||
AtkObject *parentObject = getParentCB(aObject);
|
AtkObject *parentObject = getParentCB(aObject);
|
||||||
|
@ -280,7 +280,7 @@ XULDescriptionIterator::Next()
|
|||||||
IDRefsIterator::
|
IDRefsIterator::
|
||||||
IDRefsIterator(nsDocAccessible* aDoc, nsIContent* aContent,
|
IDRefsIterator(nsDocAccessible* aDoc, nsIContent* aContent,
|
||||||
nsIAtom* aIDRefsAttr) :
|
nsIAtom* aIDRefsAttr) :
|
||||||
mCurrIdx(0), mContent(aContent), mDoc(aDoc)
|
mContent(aContent), mDoc(aDoc), mCurrIdx(0)
|
||||||
{
|
{
|
||||||
if (mContent->IsInDoc())
|
if (mContent->IsInDoc())
|
||||||
mContent->GetAttr(kNameSpaceID_None, aIDRefsAttr, mIDs);
|
mContent->GetAttr(kNameSpaceID_None, aIDRefsAttr, mIDs);
|
||||||
|
@ -63,8 +63,8 @@ public:
|
|||||||
* Constructor. Used to expose default text attributes.
|
* Constructor. Used to expose default text attributes.
|
||||||
*/
|
*/
|
||||||
TextAttrsMgr(nsHyperTextAccessible* aHyperTextAcc) :
|
TextAttrsMgr(nsHyperTextAccessible* aHyperTextAcc) :
|
||||||
mHyperTextAcc(aHyperTextAcc), mIncludeDefAttrs(true),
|
mOffsetAcc(nsnull), mHyperTextAcc(aHyperTextAcc),
|
||||||
mOffsetAcc(nsnull), mOffsetAccIdx(-1) { }
|
mOffsetAccIdx(-1), mIncludeDefAttrs(true) { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor. Used to expose text attributes at the given offset.
|
* Constructor. Used to expose text attributes at the given offset.
|
||||||
@ -82,8 +82,8 @@ public:
|
|||||||
bool aIncludeDefAttrs,
|
bool aIncludeDefAttrs,
|
||||||
nsAccessible* aOffsetAcc,
|
nsAccessible* aOffsetAcc,
|
||||||
PRInt32 aOffsetAccIdx) :
|
PRInt32 aOffsetAccIdx) :
|
||||||
mHyperTextAcc(aHyperTextAcc), mIncludeDefAttrs(aIncludeDefAttrs),
|
mOffsetAcc(aOffsetAcc), mHyperTextAcc(aHyperTextAcc),
|
||||||
mOffsetAcc(aOffsetAcc), mOffsetAccIdx(aOffsetAccIdx) { }
|
mOffsetAccIdx(aOffsetAccIdx), mIncludeDefAttrs(aIncludeDefAttrs) { }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return text attributes and hyper text offsets where these attributes are
|
* Return text attributes and hyper text offsets where these attributes are
|
||||||
@ -118,8 +118,8 @@ protected:
|
|||||||
private:
|
private:
|
||||||
nsAccessible* mOffsetAcc;
|
nsAccessible* mOffsetAcc;
|
||||||
nsHyperTextAccessible* mHyperTextAcc;
|
nsHyperTextAccessible* mHyperTextAcc;
|
||||||
PRInt32 mOffsetAccIdx;
|
PRInt32 mOffsetAccIdx;
|
||||||
bool mIncludeDefAttrs;
|
bool mIncludeDefAttrs;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user