Bug 501015 - Address code style comments from timeless. r+sr=mrbkap

This commit is contained in:
Henri Sivonen
2009-07-15 14:30:33 +03:00
parent ca78e6a35b
commit 3cb3b0a9bc
18 changed files with 257 additions and 273 deletions

View File

@@ -62,12 +62,12 @@ nsHtml5ElementName::elementNameByBuffer(jArray<PRUnichar,PRInt32> buf, PRInt32 o
if (index < 0) {
return new nsHtml5ReleasableElementName(nsHtml5Portability::newLocalNameFromBuffer(buf, offset, length));
} else {
nsHtml5ElementName* rv = nsHtml5ElementName::ELEMENT_NAMES[index];
nsIAtom* name = rv->name;
nsHtml5ElementName* elementName = nsHtml5ElementName::ELEMENT_NAMES[index];
nsIAtom* name = elementName->name;
if (!nsHtml5Portability::localEqualsBuffer(name, buf, offset, length)) {
return new nsHtml5ReleasableElementName(nsHtml5Portability::newLocalNameFromBuffer(buf, offset, length));
}
return rv;
return elementName;
}
}