Bug 659963: consistently use infallible malloc in the CSS parser. r=dbaron

This commit is contained in:
Zack Weinberg
2011-05-28 15:38:48 -07:00
parent 323c52bebb
commit 0bdf036262
8 changed files with 97 additions and 194 deletions

View File

@@ -194,13 +194,6 @@ class nsCSSScanner {
// "-1" back so we can read it again as a number.)
void Pushback(PRUnichar aChar);
// Reports operating-system level errors, e.g. read failures and
// out of memory.
nsresult GetLowLevelError();
// sometimes the parser wants to make note of a low-level error
void SetLowLevelError(nsresult aErrorCode);
protected:
PRInt32 Read();
PRInt32 Peek();
@@ -226,7 +219,6 @@ protected:
PRInt32 mPushbackCount;
PRInt32 mPushbackSize;
PRUnichar mLocalPushback[4];
nsresult mLowLevelError;
PRUint32 mLineNumber;
// True if we are in SVG mode; false in "normal" CSS