Here are the examples of the csharp api class Alba.CsCss.Style.CssParser.ParseKeyframeSelectorList(System.Collections.Generic.List) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: CsCss
Source File: CssParser.conv.cs
Source File: CssParser.conv.cs
internal nsCSSKeyframeRule ParseKeyframeRule() { var selectorList = new List<float>(); if (!ParseKeyframeSelectorList(selectorList)) { { if (!mSuppressErrors) mReporter.ReportUnexpected("PEBadSelectorKeyframeRuleIgnored"); }; return null; } // Ignore !important in keyframe rules nsParseDeclaration parseFlags = nsParseDeclaration.InBraces; Declaration declaration = ParseDeclarationBlock(parseFlags); if (declaration == null) { return null; } // Takes ownership of declaration, and steals contents of selectorList. nsCSSKeyframeRule rule = new nsCSSKeyframeRule(selectorList, declaration); return rule; }
0
2. Example
Project: CsCss
Source File: CssParser.conv.cs
Source File: CssParser.conv.cs
internal bool ParseKeyframeSelectorString(string aSelectorString, Uri aURI, // for error reporting uint32_t aLineNumber, // for error reporting List<float> aSelectorList) { Debug.Assert(aSelectorList.IsEmpty(), "given list should start empty"); var scanner = new nsCSSScanner(aSelectorString, aLineNumber); var reporter = new ErrorReporter(scanner, mSheet, mChildLoader, aURI); InitScanner(scanner, reporter, aURI, aURI, null); bool success = ParseKeyframeSelectorList(aSelectorList) && // must consume entire input string !GetToken(true); mReporter.OutputError(); ReleaseScanner(); if (success) { Debug.Assert(!aSelectorList.IsEmpty(), "should not be empty"); } else { aSelectorList.Clear(); } return success; }