/// <summary>Check if a non-page(s) target-counter(s) is mentioned and enables it.</summary>
 /// <param name="styleSheet">the stylesheet to analyze</param>
 /// <param name="cssContext">the CSS context</param>
 private static void EnableNonPageTargetCounterIfMentioned(CssStyleSheet styleSheet, CssContext cssContext)
 {
     if (CssStyleSheetAnalyzer.CheckNonPagesTargetCounterPresence(styleSheet))
     {
         cssContext.SetNonPagesTargetCounterPresent(true);
     }
 }
Beispiel #2
0
 /// <summary>Check if a pages counter is mentioned.</summary>
 /// <param name="styleSheet">the stylesheet to analyze</param>
 /// <param name="cssContext">the CSS context</param>
 private void CheckIfPagesCounterMentioned(CssStyleSheet styleSheet, CssContext cssContext)
 {
     // The presence of counter(pages) means that theoretically relayout may be needed.
     // We don't know it yet because that selector might not even be used, but
     // when we know it for sure, it's too late because the Document is created right in the start.
     if (CssStyleSheetAnalyzer.CheckPagesCounterPresence(styleSheet))
     {
         cssContext.SetPagesCounterPresent(true);
     }
 }