Beispiel #1
0
 public void LoadDefaultStyles()
 {
     using (var stream = GetType().Assembly.GetManifestResourceStream("Knyaz.Optimus.Resources.moz_default.css"))
         using (var reader = new StreamReader(stream))
         {
             _userAgentStyleSheet = StyleSheetBuilder.CreateStyleSheet(reader, GetImport);
         }
 }
Beispiel #2
0
        private void AddStyleToDocument(TextReader content)
        {
            var styleSheet = StyleSheetBuilder.CreateStyleSheet(content, GetImport);

            _document.StyleSheets.Add(styleSheet);
        }