зеркало из https://github.com/mozilla/gecko-dev.git
added helper method to token
This commit is contained in:
Родитель
781a1b7b49
Коммит
5c11b505d7
|
@ -66,10 +66,13 @@ struct nsCSSToken {
|
||||||
|
|
||||||
nsCSSToken();
|
nsCSSToken();
|
||||||
|
|
||||||
PRBool isDimension() {
|
PRBool IsDimension() {
|
||||||
return (PRBool)
|
return PRBool((eCSSToken_Dimension == mType) ||
|
||||||
((eCSSToken_Dimension == mType) ||
|
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
}
|
||||||
|
|
||||||
|
PRBool IsSymbol(PRUnichar aSymbol) {
|
||||||
|
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppendToString(nsString& aBuffer);
|
void AppendToString(nsString& aBuffer);
|
||||||
|
|
|
@ -66,10 +66,13 @@ struct nsCSSToken {
|
||||||
|
|
||||||
nsCSSToken();
|
nsCSSToken();
|
||||||
|
|
||||||
PRBool isDimension() {
|
PRBool IsDimension() {
|
||||||
return (PRBool)
|
return PRBool((eCSSToken_Dimension == mType) ||
|
||||||
((eCSSToken_Dimension == mType) ||
|
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
}
|
||||||
|
|
||||||
|
PRBool IsSymbol(PRUnichar aSymbol) {
|
||||||
|
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppendToString(nsString& aBuffer);
|
void AppendToString(nsString& aBuffer);
|
||||||
|
|
|
@ -66,10 +66,13 @@ struct nsCSSToken {
|
||||||
|
|
||||||
nsCSSToken();
|
nsCSSToken();
|
||||||
|
|
||||||
PRBool isDimension() {
|
PRBool IsDimension() {
|
||||||
return (PRBool)
|
return PRBool((eCSSToken_Dimension == mType) ||
|
||||||
((eCSSToken_Dimension == mType) ||
|
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
}
|
||||||
|
|
||||||
|
PRBool IsSymbol(PRUnichar aSymbol) {
|
||||||
|
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppendToString(nsString& aBuffer);
|
void AppendToString(nsString& aBuffer);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче