예제 #1
0
 internal ErrorReporter(nsCSSScanner aScanner, CssStyleSheet aSheet, CssLoader aLoader, Uri aUri)
 {
     mScanner = aScanner;
     mSheet = aSheet;
     mLoader = aLoader;
     mUri = aUri;
 }
예제 #2
0
 internal override void SetStyleSheet(CssStyleSheet aSheet)
 {
     if (mMedia != null) {
         mMedia.SetStyleSheet(null);
         mMedia.SetStyleSheet(aSheet);
     }
     base.SetStyleSheet(aSheet);
 }
예제 #3
0
파일: CssLoader.cs 프로젝트: jorik041/CsCss
 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;
 }
예제 #4
0
 internal void SetStyleSheet(CssStyleSheet aSheet)
 {
     mStyleSheet = aSheet;
 }
예제 #5
0
파일: CssLoader.cs 프로젝트: jorik041/CsCss
 internal void LoadChildSheet(CssStyleSheet aParentSheet, Uri aUrl, nsMediaList aMedia, CssImportRule aRule)
 {
 }
예제 #6
0
 internal void SetStyleSheet(CssStyleSheet aSheet)
 {
     mStyleSheet = aSheet;
 }
예제 #7
0
        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;
        }
예제 #8
0
 internal void LoadChildSheet(CssStyleSheet aParentSheet, Uri aUrl, nsMediaList aMedia, CssImportRule aRule)
 {
 }