Removing warnings. a=don r=waqar
git-svn-id: svn://10.0.0.236/trunk@56444 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -489,7 +489,6 @@ nsresult nsEventListenerManager::SetJSEventListener(nsIScriptContext *aContext,
|
||||
REFNSIID aIID,
|
||||
PRBool aIsString)
|
||||
{
|
||||
nsIDOMEventListener* theListener = nsnull;
|
||||
nsresult result = NS_OK;
|
||||
nsListenerStruct *ls;
|
||||
|
||||
|
||||
@@ -848,16 +848,16 @@ nsFormControlList::GetNamedObject(JSContext* aContext, jsval aID, JSObject** aOb
|
||||
char* str = JS_GetStringBytes(JS_ValueToString(aContext, aID));
|
||||
nsAutoString name(str);
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
nsCOMPtr<nsIContent> content;
|
||||
nsCOMPtr<nsIContent> form;
|
||||
|
||||
*aObj = nsnull;
|
||||
if (nsnull == mForm) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
content = do_QueryInterface(mForm);
|
||||
if (content) {
|
||||
result = content->GetDocument(*getter_AddRefs(document));
|
||||
form = do_QueryInterface(mForm);
|
||||
if (form) {
|
||||
result = form->GetDocument(*getter_AddRefs(document));
|
||||
if (NS_FAILED(result)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -358,8 +358,6 @@ nsHTMLImageElement::DeleteProperty(JSContext *aContext, JSObject *aObj, jsval aI
|
||||
PRBool
|
||||
nsHTMLImageElement::GetProperty(JSContext *aContext, JSObject *aObj, jsval aID, jsval *aVp)
|
||||
{
|
||||
PRBool result = PR_TRUE;
|
||||
|
||||
// XXX Security manager needs to be called
|
||||
if (JSVAL_IS_STRING(aID)) {
|
||||
char* cString = JS_GetStringBytes(JS_ValueToString(aContext, aID));
|
||||
|
||||
@@ -489,7 +489,6 @@ nsresult nsEventListenerManager::SetJSEventListener(nsIScriptContext *aContext,
|
||||
REFNSIID aIID,
|
||||
PRBool aIsString)
|
||||
{
|
||||
nsIDOMEventListener* theListener = nsnull;
|
||||
nsresult result = NS_OK;
|
||||
nsListenerStruct *ls;
|
||||
|
||||
|
||||
@@ -848,16 +848,16 @@ nsFormControlList::GetNamedObject(JSContext* aContext, jsval aID, JSObject** aOb
|
||||
char* str = JS_GetStringBytes(JS_ValueToString(aContext, aID));
|
||||
nsAutoString name(str);
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
nsCOMPtr<nsIContent> content;
|
||||
nsCOMPtr<nsIContent> form;
|
||||
|
||||
*aObj = nsnull;
|
||||
if (nsnull == mForm) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
content = do_QueryInterface(mForm);
|
||||
if (content) {
|
||||
result = content->GetDocument(*getter_AddRefs(document));
|
||||
form = do_QueryInterface(mForm);
|
||||
if (form) {
|
||||
result = form->GetDocument(*getter_AddRefs(document));
|
||||
if (NS_FAILED(result)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -358,8 +358,6 @@ nsHTMLImageElement::DeleteProperty(JSContext *aContext, JSObject *aObj, jsval aI
|
||||
PRBool
|
||||
nsHTMLImageElement::GetProperty(JSContext *aContext, JSObject *aObj, jsval aID, jsval *aVp)
|
||||
{
|
||||
PRBool result = PR_TRUE;
|
||||
|
||||
// XXX Security manager needs to be called
|
||||
if (JSVAL_IS_STRING(aID)) {
|
||||
char* cString = JS_GetStringBytes(JS_ValueToString(aContext, aID));
|
||||
|
||||
Reference in New Issue
Block a user