Class Matcher

java.lang.Object
com.openhtmltopdf.css.newmatch.Matcher

public class Matcher
extends Object
Author:
Torbjoern Gannholm
  • Constructor Details

  • Method Details

    • getCascadedStyle

      public CascadedStyle getCascadedStyle​(Object e, boolean restyle)
    • getCSSForAllDescendants

      public String getCSSForAllDescendants​(Object e)
      Returns CSS rulesets for descendants of e. For example, if e is an svg element and we have the ruleset 'svg rect { .. }' then the string returned will be 'rect { .. }'. FIXME: Does not correctly handle sibling selectors.
    • getPECascadedStyle

      public CascadedStyle getPECascadedStyle​(Object e, String pseudoElement)
      May return null. We assume that restyle has already been done by a getCascadedStyle if necessary.
    • getPageCascadedStyle

      public PageInfo getPageCascadedStyle​(String pageName, String pseudoPage)
    • getFontFaceRules

      public List<FontFaceRule> getFontFaceRules()
    • isVisitedStyled

      public boolean isVisitedStyled​(Object e)
    • isHoverStyled

      public boolean isHoverStyled​(Object e)
    • isActiveStyled

      public boolean isActiveStyled​(Object e)
    • isFocusStyled

      public boolean isFocusStyled​(Object e)
    • matchElement

      protected com.openhtmltopdf.css.newmatch.Matcher.Mapper matchElement​(Object e)