예제 #1
0
파일: Parser.cs 프로젝트: nt0tsky/SVG
        internal static StyleDeclaration ParseDeclarations(string declarations, bool quirksMode = false)
        {
            var decl = new StyleDeclaration();

            AppendDeclarations(decl, declarations, quirksMode);

            return(decl);
        }
예제 #2
0
파일: Parser.cs 프로젝트: nt0tsky/SVG
        internal static void AppendDeclarations(StyleDeclaration list, string css, bool quirksMode = false)
        {
            var parser = new Parser();//(new StyleSheet(), new StylesheetReader(declarations))


            parser.AddRuleSet(list.ParentRule ?? new StyleRule(list));

            parser._parsingContext = ParsingContext.InDeclaration;
            parser.Parse(css);
        }
예제 #3
0
파일: PageRule.cs 프로젝트: eastfivellc/svg
 public PageRule()
 {
     _declarations = new StyleDeclaration();
     RuleType      = RuleType.Page;
 }
예제 #4
0
파일: StyleRule.cs 프로젝트: yazici/SVG
 public StyleRule(StyleDeclaration declarations)
 {
     RuleType      = RuleType.Style;
     _declarations = declarations;
 }
예제 #5
0
파일: FontFaceRule.cs 프로젝트: yazici/SVG
 public FontFaceRule()
 {
     _declarations = new StyleDeclaration();
     RuleType      = RuleType.FontFace;
 }
예제 #6
0
 public KeyframeRule()
 {
     Declarations = new StyleDeclaration();
     RuleType     = RuleType.Keyframe;
 }