Bug 833009 - Remove "nsContentUtils.h" inclusions from headers in content/xslt/. r=Ms2ger

This commit is contained in:
Mounir Lamouri 2013-01-23 19:40:52 +00:00
parent 3784798145
commit eb28a22f88
4 changed files with 11 additions and 7 deletions

View File

@ -9,7 +9,7 @@
#include "nsAString.h"
#include "nsIAtom.h"
#include "nsUnicharUtils.h"
#include "nsContentUtils.h"
#include "nsContentUtils.h" // For ASCIIToLower().
typedef nsCaseInsensitiveStringComparator txCaseInsensitiveStringComparator;

View File

@ -14,6 +14,7 @@
#include "txStringUtils.h"
#include "txNamespaceMap.h"
#include "txXPathTreeWalker.h"
#include "nsContentUtils.h"
nsresult
txExpandedName::init(const nsAString& aQName, txNamespaceMap* aResolver,
@ -195,6 +196,13 @@ void XMLUtils::normalizePIValue(nsAString& piValue)
}
}
//static
bool XMLUtils::isValidQName(const nsAFlatString& aQName,
const PRUnichar** aColon)
{
return NS_SUCCEEDED(nsContentUtils::CheckQName(aQName, true, aColon));
}
//static
bool XMLUtils::getXMLSpacePreserve(const txXPathNode& aNode)
{

View File

@ -15,7 +15,6 @@
#include "nsDependentSubstring.h"
#include "nsIAtom.h"
#include "txXPathNode.h"
#include "nsContentUtils.h"
#define kExpatSeparatorChar 0xFFFF
@ -114,10 +113,7 @@ public:
* Returns true if the given string is a valid XML QName
*/
static bool isValidQName(const nsAFlatString& aQName,
const PRUnichar** aColon)
{
return NS_SUCCEEDED(nsContentUtils::CheckQName(aQName, true, aColon));
}
const PRUnichar** aColon);
/**
* Returns true if the given character represents an Alpha letter

View File

@ -11,7 +11,7 @@
#include "nsIDocument.h"
#include "nsIDOMNode.h"
#include "nsINameSpaceManager.h"
#include "nsContentUtils.h"
#include "nsContentUtils.h" // For NameSpaceManager().
typedef nsIDOMNode txXPathNodeType;