Bug 113228: Replace ns{C}String::To{Upper,Lower}Case with global versions. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110611 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include "nsIFileChannel.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsHTMLDocument.h"
|
||||
#include "nsIParser.h"
|
||||
#include "nsIParserFilter.h"
|
||||
@@ -1360,7 +1361,7 @@ nsHTMLDocument::CreateElement(const nsAReadableString& aTagName,
|
||||
|
||||
nsCOMPtr<nsINodeInfo> nodeInfo;
|
||||
nsAutoString tmp(aTagName);
|
||||
tmp.ToLowerCase();
|
||||
ToLowerCase(tmp);
|
||||
|
||||
mNodeInfoManager->GetNodeInfo(tmp, nsnull, kNameSpaceID_None,
|
||||
*getter_AddRefs(nodeInfo));
|
||||
@@ -1451,7 +1452,7 @@ NS_IMETHODIMP
|
||||
nsHTMLDocument::GetElementsByTagName(const nsAReadableString& aTagname, nsIDOMNodeList** aReturn)
|
||||
{
|
||||
nsAutoString tmp(aTagname);
|
||||
tmp.ToLowerCase(); // HTML elements are lower case internally.
|
||||
ToLowerCase(tmp); // HTML elements are lower case internally.
|
||||
return nsDocument::GetElementsByTagName(tmp, aReturn);
|
||||
}
|
||||
|
||||
@@ -2565,7 +2566,7 @@ nsHTMLDocument::GetElementsByTagNameNS(const nsAReadableString& aNamespaceURI,
|
||||
nsIDOMNodeList** aReturn)
|
||||
{
|
||||
nsAutoString tmp(aLocalName);
|
||||
tmp.ToLowerCase(); // HTML elements are lower case internally.
|
||||
ToLowerCase(tmp); // HTML elements are lower case internally.
|
||||
return nsDocument::GetElementsByTagNameNS(aNamespaceURI, tmp,
|
||||
aReturn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user