Package org.xhtmlrenderer.css.newmatch
Class Matcher
java.lang.Object
org.xhtmlrenderer.css.newmatch.Matcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
Mapper represents a local CSS for a Node that is used to match the Node's children. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AttributeResolver
private final List
<FontFaceRule> private final Map
<Node, Matcher.Mapper> private final StylesheetFactory
private final TreeResolver
private final Matcher.Mapper
-
Constructor Summary
ConstructorsConstructorDescriptionMatcher
(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAllStylesheets
(List<Stylesheet> stylesheets, Map<String, Selector> sorter, String medium) private Matcher.Mapper
createDocumentMapper
(List<Stylesheet> stylesheets, String medium) getCascadedStyle
(Element e, boolean restyle) private Ruleset
private Matcher.Mapper
private Ruleset
getPageCascadedStyle
(String pageName, String pseudoPage) getPECascadedStyle
(Element e, String pseudoElement) May return null.boolean
boolean
boolean
boolean
private void
link
(Node e, Matcher.Mapper m) private Matcher.Mapper
matchElement
(Node e) void
-
Field Details
-
docMapper
-
_attRes
-
_treeRes
-
_styleFactory
-
_map
-
_hoverElements
-
_activeElements
-
_focusElements
-
_visitElements
-
_pageRules
-
_fontFaceRules
-
-
Constructor Details
-
Matcher
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
-
Method Details
-
removeStyle
-
getCascadedStyle
-
getPECascadedStyle
May return null. We assume that restyle has already been done by a getCascadedStyle if necessary. -
getPageCascadedStyle
-
getFontFaceRules
-
isVisitedStyled
-
isHoverStyled
-
isActiveStyled
-
isFocusStyled
-
matchElement
-
createDocumentMapper
-
addAllStylesheets
-
link
-
getMapper
-
getElementStyle
-
getNonCssStyle
-