mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 773842 - Fix build warnings under content/ r=mounir
This commit is contained in:
parent
0513cf7569
commit
b462ec011a
@ -15,7 +15,6 @@ LIBRARY_NAME = gkconbase_s
|
|||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXPORTS = \
|
EXPORTS = \
|
||||||
nsAtomListUtils.h \
|
nsAtomListUtils.h \
|
||||||
nsAttrName.h \
|
nsAttrName.h \
|
||||||
|
@ -1199,8 +1199,8 @@ nsContentSubtreeIterator::Init(nsIDOMRange* aRange)
|
|||||||
PRInt32 endOffset = mRange->EndOffset();
|
PRInt32 endOffset = mRange->EndOffset();
|
||||||
MOZ_ASSERT(mCommonParent && startParent && endParent);
|
MOZ_ASSERT(mCommonParent && startParent && endParent);
|
||||||
// Bug 767169
|
// Bug 767169
|
||||||
MOZ_ASSERT(startOffset <= startParent->Length() &&
|
MOZ_ASSERT(PRUint32(startOffset) <= startParent->Length() &&
|
||||||
endOffset <= endParent->Length());
|
PRUint32(endOffset) <= endParent->Length());
|
||||||
|
|
||||||
// short circuit when start node == end node
|
// short circuit when start node == end node
|
||||||
if (startParent == endParent) {
|
if (startParent == endParent) {
|
||||||
|
@ -57,7 +57,6 @@ private:
|
|||||||
nsCOMPtr<nsIURI> mBaseURI;
|
nsCOMPtr<nsIURI> mBaseURI;
|
||||||
nsWeakPtr mScriptHandlingObject;
|
nsWeakPtr mScriptHandlingObject;
|
||||||
|
|
||||||
bool mLoopingForSyncLoad;
|
|
||||||
bool mAttemptedInit;
|
bool mAttemptedInit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkconevents_s
|
LIBRARY_NAME = gkconevents_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
EXPORTS = \
|
EXPORTS = \
|
||||||
nsEventStateManager.h \
|
nsEventStateManager.h \
|
||||||
|
@ -97,7 +97,7 @@ protected:
|
|||||||
bool mPointsInitialized;
|
bool mPointsInitialized;
|
||||||
};
|
};
|
||||||
|
|
||||||
class nsDOMTouchList : public nsIDOMTouchList
|
class nsDOMTouchList MOZ_FINAL : public nsIDOMTouchList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
|
@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkconhtmldoc_s
|
LIBRARY_NAME = gkconhtmldoc_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsHTMLContentSink.cpp \
|
nsHTMLContentSink.cpp \
|
||||||
|
@ -13,6 +13,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkcontentmathml_s
|
LIBRARY_NAME = gkcontentmathml_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsMathMLElement.cpp \
|
nsMathMLElement.cpp \
|
||||||
|
@ -13,6 +13,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkcontentsvg_s
|
LIBRARY_NAME = gkcontentsvg_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
DOMSVGAnimatedLengthList.cpp \
|
DOMSVGAnimatedLengthList.cpp \
|
||||||
|
@ -14,7 +14,6 @@ MODULE = content
|
|||||||
LIBRARY_NAME = gkconxbl_s
|
LIBRARY_NAME = gkconxbl_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsXBLBinding.cpp \
|
nsXBLBinding.cpp \
|
||||||
nsXBLPrototypeBinding.cpp \
|
nsXBLPrototypeBinding.cpp \
|
||||||
|
@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkconxmlcon_s
|
LIBRARY_NAME = gkconxmlcon_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsXMLElement.cpp \
|
nsXMLElement.cpp \
|
||||||
|
@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkconxmldoc_s
|
LIBRARY_NAME = gkconxmldoc_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsXMLContentSink.cpp \
|
nsXMLContentSink.cpp \
|
||||||
|
@ -29,7 +29,6 @@ NS_IMPL_ISUPPORTS2(nsXMLPrettyPrinter,
|
|||||||
nsIMutationObserver)
|
nsIMutationObserver)
|
||||||
|
|
||||||
nsXMLPrettyPrinter::nsXMLPrettyPrinter() : mDocument(nullptr),
|
nsXMLPrettyPrinter::nsXMLPrettyPrinter() : mDocument(nullptr),
|
||||||
mUpdateDepth(0),
|
|
||||||
mUnhookPending(false)
|
mUnhookPending(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -44,7 +43,7 @@ nsXMLPrettyPrinter::PrettyPrint(nsIDocument* aDocument,
|
|||||||
bool* aDidPrettyPrint)
|
bool* aDidPrettyPrint)
|
||||||
{
|
{
|
||||||
*aDidPrettyPrint = false;
|
*aDidPrettyPrint = false;
|
||||||
|
|
||||||
// Check for iframe with display:none. Such iframes don't have presshells
|
// Check for iframe with display:none. Such iframes don't have presshells
|
||||||
if (!aDocument->GetShell()) {
|
if (!aDocument->GetShell()) {
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -49,7 +49,6 @@ private:
|
|||||||
void MaybeUnhook(nsIContent* aContent);
|
void MaybeUnhook(nsIContent* aContent);
|
||||||
|
|
||||||
nsIDocument* mDocument; //weak. Set as long as we're observing the document
|
nsIDocument* mDocument; //weak. Set as long as we're observing the document
|
||||||
PRUint32 mUpdateDepth;
|
|
||||||
bool mUnhookPending;
|
bool mUnhookPending;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,14 +26,12 @@
|
|||||||
class nsXPathEvaluatorParseContext : public txIParseContext
|
class nsXPathEvaluatorParseContext : public txIParseContext
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsXPathEvaluatorParseContext(nsXPathEvaluator &aEvaluator,
|
nsXPathEvaluatorParseContext(nsIDOMXPathNSResolver* aResolver,
|
||||||
nsIDOMXPathNSResolver* aResolver,
|
|
||||||
nsTArray<PRInt32> *aNamespaceIDs,
|
nsTArray<PRInt32> *aNamespaceIDs,
|
||||||
nsTArray<nsCString> *aContractIDs,
|
nsTArray<nsCString> *aContractIDs,
|
||||||
nsCOMArray<nsISupports> *aState,
|
nsCOMArray<nsISupports> *aState,
|
||||||
bool aIsCaseSensitive)
|
bool aIsCaseSensitive)
|
||||||
: mEvaluator(aEvaluator),
|
: mResolver(aResolver),
|
||||||
mResolver(aResolver),
|
|
||||||
mNamespaceIDs(aNamespaceIDs),
|
mNamespaceIDs(aNamespaceIDs),
|
||||||
mContractIDs(aContractIDs),
|
mContractIDs(aContractIDs),
|
||||||
mState(aState),
|
mState(aState),
|
||||||
@ -57,7 +55,6 @@ public:
|
|||||||
void SetErrorOffset(PRUint32 aOffset);
|
void SetErrorOffset(PRUint32 aOffset);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
nsXPathEvaluator &mEvaluator;
|
|
||||||
nsIDOMXPathNSResolver* mResolver;
|
nsIDOMXPathNSResolver* mResolver;
|
||||||
nsTArray<PRInt32> *mNamespaceIDs;
|
nsTArray<PRInt32> *mNamespaceIDs;
|
||||||
nsTArray<nsCString> *mContractIDs;
|
nsTArray<nsCString> *mContractIDs;
|
||||||
@ -191,7 +188,7 @@ nsXPathEvaluator::CreateExpression(const nsAString & aExpression,
|
|||||||
}
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIDocument> doc = do_QueryReferent(mDocument);
|
nsCOMPtr<nsIDocument> doc = do_QueryReferent(mDocument);
|
||||||
nsXPathEvaluatorParseContext pContext(*this, aResolver, aNamespaceIDs,
|
nsXPathEvaluatorParseContext pContext(aResolver, aNamespaceIDs,
|
||||||
aContractIDs, aState,
|
aContractIDs, aState,
|
||||||
!(doc && doc->IsHTML()));
|
!(doc && doc->IsHTML()));
|
||||||
|
|
||||||
|
@ -99,9 +99,9 @@ public:
|
|||||||
txXPCOMExtensionFunctionCall(nsISupports *aHelper, const nsIID &aIID,
|
txXPCOMExtensionFunctionCall(nsISupports *aHelper, const nsIID &aIID,
|
||||||
PRUint16 aMethodIndex,
|
PRUint16 aMethodIndex,
|
||||||
#ifdef TX_TO_STRING
|
#ifdef TX_TO_STRING
|
||||||
PRInt32 aNamespaceID, nsIAtom *aName,
|
nsIAtom *aName,
|
||||||
#endif
|
#endif
|
||||||
nsISupports *aState);
|
nsISupports *aState);
|
||||||
|
|
||||||
TX_DECL_FUNCTION
|
TX_DECL_FUNCTION
|
||||||
|
|
||||||
@ -113,7 +113,6 @@ private:
|
|||||||
nsIID mIID;
|
nsIID mIID;
|
||||||
PRUint16 mMethodIndex;
|
PRUint16 mMethodIndex;
|
||||||
#ifdef TX_TO_STRING
|
#ifdef TX_TO_STRING
|
||||||
PRInt32 mNamespaceID;
|
|
||||||
nsCOMPtr<nsIAtom> mName;
|
nsCOMPtr<nsIAtom> mName;
|
||||||
#endif
|
#endif
|
||||||
nsCOMPtr<nsISupports> mState;
|
nsCOMPtr<nsISupports> mState;
|
||||||
@ -123,7 +122,6 @@ txXPCOMExtensionFunctionCall::txXPCOMExtensionFunctionCall(nsISupports *aHelper,
|
|||||||
const nsIID &aIID,
|
const nsIID &aIID,
|
||||||
PRUint16 aMethodIndex,
|
PRUint16 aMethodIndex,
|
||||||
#ifdef TX_TO_STRING
|
#ifdef TX_TO_STRING
|
||||||
PRInt32 aNamespaceID,
|
|
||||||
nsIAtom *aName,
|
nsIAtom *aName,
|
||||||
#endif
|
#endif
|
||||||
nsISupports *aState)
|
nsISupports *aState)
|
||||||
@ -131,7 +129,6 @@ txXPCOMExtensionFunctionCall::txXPCOMExtensionFunctionCall(nsISupports *aHelper,
|
|||||||
mIID(aIID),
|
mIID(aIID),
|
||||||
mMethodIndex(aMethodIndex),
|
mMethodIndex(aMethodIndex),
|
||||||
#ifdef TX_TO_STRING
|
#ifdef TX_TO_STRING
|
||||||
mNamespaceID(aNamespaceID),
|
|
||||||
mName(aName),
|
mName(aName),
|
||||||
#endif
|
#endif
|
||||||
mState(aState)
|
mState(aState)
|
||||||
@ -248,7 +245,7 @@ TX_ResolveFunctionCallXPCOM(const nsCString &aContractID, PRInt32 aNamespaceID,
|
|||||||
|
|
||||||
*aFunction = new txXPCOMExtensionFunctionCall(helper, iid, methodIndex,
|
*aFunction = new txXPCOMExtensionFunctionCall(helper, iid, methodIndex,
|
||||||
#ifdef TX_TO_STRING
|
#ifdef TX_TO_STRING
|
||||||
aNamespaceID, aName,
|
aName,
|
||||||
#endif
|
#endif
|
||||||
aState);
|
aState);
|
||||||
|
|
||||||
|
@ -859,9 +859,8 @@ txStylesheetCompilerState::resolveNamespacePrefix(nsIAtom* aPrefix,
|
|||||||
class txErrorFunctionCall : public FunctionCall
|
class txErrorFunctionCall : public FunctionCall
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
txErrorFunctionCall(nsIAtom* aName, const PRInt32 aID)
|
txErrorFunctionCall(nsIAtom* aName)
|
||||||
: mName(aName),
|
: mName(aName)
|
||||||
mID(aID)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -869,7 +868,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
nsCOMPtr<nsIAtom> mName;
|
nsCOMPtr<nsIAtom> mName;
|
||||||
PRInt32 mID;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
@ -1092,7 +1090,7 @@ txStylesheetCompilerState::resolveFunctionCall(nsIAtom* aName, PRInt32 aID,
|
|||||||
nsresult rv = findFunction(aName, aID, this, aFunction);
|
nsresult rv = findFunction(aName, aID, this, aFunction);
|
||||||
if (rv == NS_ERROR_XPATH_UNKNOWN_FUNCTION &&
|
if (rv == NS_ERROR_XPATH_UNKNOWN_FUNCTION &&
|
||||||
(aID != kNameSpaceID_None || fcp())) {
|
(aID != kNameSpaceID_None || fcp())) {
|
||||||
*aFunction = new txErrorFunctionCall(aName, aID);
|
*aFunction = new txErrorFunctionCall(aName);
|
||||||
rv = *aFunction ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
rv = *aFunction ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||||||
MODULE = content
|
MODULE = content
|
||||||
LIBRARY_NAME = gkcontentxtf_s
|
LIBRARY_NAME = gkcontentxtf_s
|
||||||
LIBXUL_LIBRARY = 1
|
LIBXUL_LIBRARY = 1
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsXMLContentBuilder.cpp \
|
nsXMLContentBuilder.cpp \
|
||||||
|
@ -7,6 +7,7 @@ DEPTH = @DEPTH@
|
|||||||
topsrcdir = @top_srcdir@
|
topsrcdir = @top_srcdir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
FAIL_ON_WARNINGS = 1
|
||||||
|
|
||||||
include $(DEPTH)/config/autoconf.mk
|
include $(DEPTH)/config/autoconf.mk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user