mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
added helper method to token
This commit is contained in:
parent
781a1b7b49
commit
5c11b505d7
@ -66,10 +66,13 @@ struct nsCSSToken {
|
||||
|
||||
nsCSSToken();
|
||||
|
||||
PRBool isDimension() {
|
||||
return (PRBool)
|
||||
((eCSSToken_Dimension == mType) ||
|
||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||
PRBool IsDimension() {
|
||||
return PRBool((eCSSToken_Dimension == mType) ||
|
||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||
}
|
||||
|
||||
PRBool IsSymbol(PRUnichar aSymbol) {
|
||||
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
|
||||
}
|
||||
|
||||
void AppendToString(nsString& aBuffer);
|
||||
|
@ -66,10 +66,13 @@ struct nsCSSToken {
|
||||
|
||||
nsCSSToken();
|
||||
|
||||
PRBool isDimension() {
|
||||
return (PRBool)
|
||||
((eCSSToken_Dimension == mType) ||
|
||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||
PRBool IsDimension() {
|
||||
return PRBool((eCSSToken_Dimension == mType) ||
|
||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||
}
|
||||
|
||||
PRBool IsSymbol(PRUnichar aSymbol) {
|
||||
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
|
||||
}
|
||||
|
||||
void AppendToString(nsString& aBuffer);
|
||||
|
@ -66,10 +66,13 @@ struct nsCSSToken {
|
||||
|
||||
nsCSSToken();
|
||||
|
||||
PRBool isDimension() {
|
||||
return (PRBool)
|
||||
((eCSSToken_Dimension == mType) ||
|
||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||
PRBool IsDimension() {
|
||||
return PRBool((eCSSToken_Dimension == mType) ||
|
||||
((eCSSToken_Number == mType) && (mNumber == 0.0f)));
|
||||
}
|
||||
|
||||
PRBool IsSymbol(PRUnichar aSymbol) {
|
||||
return PRBool((eCSSToken_Symbol == mType) && (mSymbol == aSymbol));
|
||||
}
|
||||
|
||||
void AppendToString(nsString& aBuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user