mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
bug 513647: fixed a compil warning on nsHTMLContentSerializer::SerializeAttributes. r=Olli.Pettay, sr=bzbarsky
This commit is contained in:
parent
5eadd2ad50
commit
32d07c5cca
@ -103,12 +103,12 @@ nsHTMLContentSerializer::AppendDocumentStart(nsIDOMDocument *aDocument,
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLContentSerializer::SerializeAttributes(nsIContent* aContent,
|
||||
nsIDOMElement *aOriginalElement,
|
||||
nsAString& aTagPrefix,
|
||||
const nsAString& aTagNamespaceURI,
|
||||
nsIAtom* aTagName,
|
||||
nsAString& aStr)
|
||||
nsHTMLContentSerializer::SerializeHTMLAttributes(nsIContent* aContent,
|
||||
nsIDOMElement *aOriginalElement,
|
||||
nsAString& aTagPrefix,
|
||||
const nsAString& aTagNamespaceURI,
|
||||
nsIAtom* aTagName,
|
||||
nsAString& aStr)
|
||||
{
|
||||
PRInt32 count = aContent->GetAttrCount();
|
||||
if (!count)
|
||||
@ -306,7 +306,7 @@ nsHTMLContentSerializer::AppendElementStart(nsIDOMElement *aElement,
|
||||
// Even LI passed above have to go through this
|
||||
// for serializing attributes other than "value".
|
||||
nsAutoString dummyPrefix;
|
||||
SerializeAttributes(content, aOriginalElement, dummyPrefix, EmptyString(), name, aStr);
|
||||
SerializeHTMLAttributes(content, aOriginalElement, dummyPrefix, EmptyString(), name, aStr);
|
||||
|
||||
AppendToString(kGreaterThan, aStr);
|
||||
|
||||
|
@ -68,12 +68,12 @@ class nsHTMLContentSerializer : public nsXHTMLContentSerializer {
|
||||
nsAString& aStr);
|
||||
protected:
|
||||
|
||||
virtual void SerializeAttributes(nsIContent* aContent,
|
||||
nsIDOMElement *aOriginalElement,
|
||||
nsAString& aTagPrefix,
|
||||
const nsAString& aTagNamespaceURI,
|
||||
nsIAtom* aTagName,
|
||||
nsAString& aStr);
|
||||
virtual void SerializeHTMLAttributes(nsIContent* aContent,
|
||||
nsIDOMElement *aOriginalElement,
|
||||
nsAString& aTagPrefix,
|
||||
const nsAString& aTagNamespaceURI,
|
||||
nsIAtom* aTagName,
|
||||
nsAString& aStr);
|
||||
};
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user