mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 729048 - Part 2: Replace calls to nsParserService::CheckQName with nsContentUtils::CheckQName in nsDocument.cpp. r=hsivonen
This commit is contained in:
parent
6ba0c7d9b4
commit
f5597d8025
@ -1420,12 +1420,9 @@ nsDOMImplementation::CreateDocument(const nsAString& aNamespaceURI,
|
||||
|
||||
nsresult rv;
|
||||
if (!aQualifiedName.IsEmpty()) {
|
||||
nsIParserService *parserService = nsContentUtils::GetParserService();
|
||||
NS_ENSURE_TRUE(parserService, NS_ERROR_FAILURE);
|
||||
|
||||
const nsAFlatString& qName = PromiseFlatString(aQualifiedName);
|
||||
const PRUnichar *colon;
|
||||
rv = parserService->CheckQName(qName, true, &colon);
|
||||
rv = nsContentUtils::CheckQName(qName, true, &colon);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (colon &&
|
||||
|
Loading…
Reference in New Issue
Block a user