public CssStyleSheet ParseSheet(string aInput, Uri sheetUrl, Uri baseUrl) { var sheet = new CssStyleSheet(); sheet.SetURIs(sheetUrl, baseUrl); var parser = new CssParser(); parser.SetChildLoader(this); parser.SetQuirkMode(Compatibility == BrowserCompatibility.Quirks); parser.SetStyleSheet(sheet); parser.ParseSheet(aInput, sheetUrl, baseUrl, nsIPrincipal.Default, 1, false); sheet.Fix(); // My return sheet; }
public nsAutoParseCompoundProperty(CssParser aParser) { mParser = aParser; mParser.SetParsingCompoundProperty(true); }
public nsAutoSuppressErrors(CssParser aParser, bool aSuppressErrors = true) { mParser = aParser; mOriginalValue = mParser.mSuppressErrors; mParser.mSuppressErrors = aSuppressErrors; }
public nsAutoFailingSupportsRule(CssParser aParser, bool aCondition) { mParser = aParser; mOriginalValue = mParser.mInFailingSupportsRule; if (!aCondition) mParser.mInFailingSupportsRule = true; }