internal ErrorReporter(nsCSSScanner aScanner, CssStyleSheet aSheet, CssLoader aLoader, Uri aUri) { mScanner = aScanner; mSheet = aSheet; mLoader = aLoader; mUri = aUri; }
internal override void SetStyleSheet(CssStyleSheet aSheet) { if (mMedia != null) { mMedia.SetStyleSheet(null); mMedia.SetStyleSheet(aSheet); } base.SetStyleSheet(aSheet); }
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; }
internal void SetStyleSheet(CssStyleSheet aSheet) { mStyleSheet = aSheet; }
internal void LoadChildSheet(CssStyleSheet aParentSheet, Uri aUrl, nsMediaList aMedia, CssImportRule aRule) { }
internal nsresult SetStyleSheet(nsCSSStyleSheet aSheet) { if (aSheet != mSheet) { // Switch to using the new sheet, if any mGroupStack.Clear(); mSheet = aSheet; if (mSheet != null) { mNameSpaceMap = mSheet.GetNameSpaceMap(); } else { mNameSpaceMap = null; } } else if (mSheet != null) { mNameSpaceMap = mSheet.GetNameSpaceMap(); } return nsresult.OK; }