Bug 729048 - Part 4: Replace calls to nsParserService::CheckQName with nsContentUtils::CheckQName in txXMLUtils.h. r=hsivonen
authorMatias Juntunen <matias.juntunen@gmail.com>
Thu, 29 Mar 2012 17:31:40 -0400
changeset 93975 db2978f38798c96f35b169a14564d455da948d7b
parent 93974 c2d8ac6bb09cbd96ead468c6c6f1cb0884d89a5f
child 93976 4bbfb954c0dd9737ee0bf01646ef686ea5d6ec33
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsivonen
bugs729048
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 729048 - Part 4: Replace calls to nsParserService::CheckQName with nsContentUtils::CheckQName in txXMLUtils.h. r=hsivonen
content/xslt/src/xml/txXMLUtils.h
--- a/content/xslt/src/xml/txXMLUtils.h
+++ b/content/xslt/src/xml/txXMLUtils.h
@@ -144,18 +144,17 @@ public:
     static void normalizePIValue(nsAString& attValue);
 
     /**
      * Returns true if the given string is a valid XML QName
      */
     static bool isValidQName(const nsAFlatString& aQName,
                                const PRUnichar** aColon)
     {
-        nsIParserService* ps = nsContentUtils::GetParserService();
-        return ps && NS_SUCCEEDED(ps->CheckQName(aQName, true, aColon));
+        return NS_SUCCEEDED(nsContentUtils::CheckQName(aQName, true, aColon));
     }
 
     /**
      * Returns true if the given character represents an Alpha letter
      */
     static bool isLetter(PRUnichar aChar)
     {
         return !!MOZ_XMLIsLetter(reinterpret_cast<const char*>(&aChar));