more WIP to remove nsStr references
This commit is contained in:
Родитель
e750a8bcc4
Коммит
c815bfa127
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsString;
|
||||
class nsCString;
|
||||
|
||||
/*
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a keyword string, return the enum value
|
||||
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
|
||||
|
||||
// Given a keyword enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsCString;
|
||||
class nsString;
|
||||
|
||||
/*
|
||||
Declare the enum list using the magic of preprocessing
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a property string, return the enum value
|
||||
static nsCSSProperty LookupProperty(const nsStr& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsString& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsCString& aProperty);
|
||||
|
||||
// Given a property enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSProperty aProperty);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsString;
|
||||
class nsCString;
|
||||
|
||||
/*
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a keyword string, return the enum value
|
||||
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
|
||||
|
||||
// Given a keyword enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsCString;
|
||||
class nsString;
|
||||
|
||||
/*
|
||||
Declare the enum list using the magic of preprocessing
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a property string, return the enum value
|
||||
static nsCSSProperty LookupProperty(const nsStr& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsString& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsCString& aProperty);
|
||||
|
||||
// Given a property enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSProperty aProperty);
|
||||
|
|
|
@ -114,7 +114,7 @@ nsCSSKeywords::ReleaseTable(void)
|
|||
|
||||
|
||||
nsCSSKeyword
|
||||
nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
|
||||
nsCSSKeywords::LookupKeyword(const nsCString& aKeyword)
|
||||
{
|
||||
NS_ASSERTION(gKeywordTree, "no lookup table, needs addref");
|
||||
if (gKeywordTree) {
|
||||
|
@ -128,6 +128,12 @@ nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
|
|||
return eCSSKeyword_UNKNOWN;
|
||||
}
|
||||
|
||||
nsCSSKeyword
|
||||
nsCSSKeywords::LookupKeyword(const nsString& aKeyword) {
|
||||
nsCAutoString theKeyword(aKeyword);
|
||||
return LookupKeyword(theKeyword);
|
||||
}
|
||||
|
||||
|
||||
const nsCString&
|
||||
nsCSSKeywords::GetStringValue(nsCSSKeyword aKeyword)
|
||||
|
|
|
@ -119,7 +119,7 @@ nsCSSProps::ReleaseTable(void)
|
|||
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsStr& aProperty)
|
||||
nsCSSProps::LookupProperty(const nsCString& aProperty)
|
||||
{
|
||||
NS_ASSERTION(gPropertyTree, "no lookup table, needs addref");
|
||||
if (gPropertyTree) {
|
||||
|
@ -134,6 +134,13 @@ nsCSSProps::LookupProperty(const nsStr& aProperty)
|
|||
}
|
||||
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsString& aProperty) {
|
||||
nsCAutoString theProp(aProperty);
|
||||
return LookupProperty(theProp);
|
||||
}
|
||||
|
||||
|
||||
const nsCString&
|
||||
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
|
||||
{
|
||||
|
|
|
@ -114,7 +114,7 @@ nsCSSKeywords::ReleaseTable(void)
|
|||
|
||||
|
||||
nsCSSKeyword
|
||||
nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
|
||||
nsCSSKeywords::LookupKeyword(const nsCString& aKeyword)
|
||||
{
|
||||
NS_ASSERTION(gKeywordTree, "no lookup table, needs addref");
|
||||
if (gKeywordTree) {
|
||||
|
@ -128,6 +128,12 @@ nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
|
|||
return eCSSKeyword_UNKNOWN;
|
||||
}
|
||||
|
||||
nsCSSKeyword
|
||||
nsCSSKeywords::LookupKeyword(const nsString& aKeyword) {
|
||||
nsCAutoString theKeyword(aKeyword);
|
||||
return LookupKeyword(theKeyword);
|
||||
}
|
||||
|
||||
|
||||
const nsCString&
|
||||
nsCSSKeywords::GetStringValue(nsCSSKeyword aKeyword)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsString;
|
||||
class nsCString;
|
||||
|
||||
/*
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a keyword string, return the enum value
|
||||
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
|
||||
|
||||
// Given a keyword enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);
|
||||
|
|
|
@ -119,7 +119,7 @@ nsCSSProps::ReleaseTable(void)
|
|||
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsStr& aProperty)
|
||||
nsCSSProps::LookupProperty(const nsCString& aProperty)
|
||||
{
|
||||
NS_ASSERTION(gPropertyTree, "no lookup table, needs addref");
|
||||
if (gPropertyTree) {
|
||||
|
@ -134,6 +134,13 @@ nsCSSProps::LookupProperty(const nsStr& aProperty)
|
|||
}
|
||||
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsString& aProperty) {
|
||||
nsCAutoString theProp(aProperty);
|
||||
return LookupProperty(theProp);
|
||||
}
|
||||
|
||||
|
||||
const nsCString&
|
||||
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
|
||||
{
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsCString;
|
||||
class nsString;
|
||||
|
||||
/*
|
||||
Declare the enum list using the magic of preprocessing
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a property string, return the enum value
|
||||
static nsCSSProperty LookupProperty(const nsStr& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsString& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsCString& aProperty);
|
||||
|
||||
// Given a property enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSProperty aProperty);
|
||||
|
|
|
@ -114,7 +114,7 @@ nsCSSKeywords::ReleaseTable(void)
|
|||
|
||||
|
||||
nsCSSKeyword
|
||||
nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
|
||||
nsCSSKeywords::LookupKeyword(const nsCString& aKeyword)
|
||||
{
|
||||
NS_ASSERTION(gKeywordTree, "no lookup table, needs addref");
|
||||
if (gKeywordTree) {
|
||||
|
@ -128,6 +128,12 @@ nsCSSKeywords::LookupKeyword(const nsStr& aKeyword)
|
|||
return eCSSKeyword_UNKNOWN;
|
||||
}
|
||||
|
||||
nsCSSKeyword
|
||||
nsCSSKeywords::LookupKeyword(const nsString& aKeyword) {
|
||||
nsCAutoString theKeyword(aKeyword);
|
||||
return LookupKeyword(theKeyword);
|
||||
}
|
||||
|
||||
|
||||
const nsCString&
|
||||
nsCSSKeywords::GetStringValue(nsCSSKeyword aKeyword)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsString;
|
||||
class nsCString;
|
||||
|
||||
/*
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a keyword string, return the enum value
|
||||
static nsCSSKeyword LookupKeyword(const nsStr& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsCString& aKeyword);
|
||||
static nsCSSKeyword LookupKeyword(const nsString& aKeyword);
|
||||
|
||||
// Given a keyword enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSKeyword aKeyword);
|
||||
|
|
|
@ -119,7 +119,7 @@ nsCSSProps::ReleaseTable(void)
|
|||
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsStr& aProperty)
|
||||
nsCSSProps::LookupProperty(const nsCString& aProperty)
|
||||
{
|
||||
NS_ASSERTION(gPropertyTree, "no lookup table, needs addref");
|
||||
if (gPropertyTree) {
|
||||
|
@ -134,6 +134,13 @@ nsCSSProps::LookupProperty(const nsStr& aProperty)
|
|||
}
|
||||
|
||||
|
||||
nsCSSProperty
|
||||
nsCSSProps::LookupProperty(const nsString& aProperty) {
|
||||
nsCAutoString theProp(aProperty);
|
||||
return LookupProperty(theProp);
|
||||
}
|
||||
|
||||
|
||||
const nsCString&
|
||||
nsCSSProps::GetStringValue(nsCSSProperty aProperty)
|
||||
{
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
#include "nslayout.h"
|
||||
|
||||
struct nsStr;
|
||||
class nsCString;
|
||||
class nsString;
|
||||
|
||||
/*
|
||||
Declare the enum list using the magic of preprocessing
|
||||
|
@ -49,7 +49,8 @@ public:
|
|||
static void ReleaseTable(void);
|
||||
|
||||
// Given a property string, return the enum value
|
||||
static nsCSSProperty LookupProperty(const nsStr& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsString& aProperty);
|
||||
static nsCSSProperty LookupProperty(const nsCString& aProperty);
|
||||
|
||||
// Given a property enum, get the string value
|
||||
static const nsCString& GetStringValue(nsCSSProperty aProperty);
|
||||
|
|
Загрузка…
Ссылка в новой задаче