Package org.htmlunit.html
Class HtmlPage.ComputedStylesCache
java.lang.Object
org.htmlunit.html.HtmlPage.ComputedStylesCache
- All Implemented Interfaces:
Serializable
- Enclosing class:
HtmlPage
Cache computed styles when possible, because their calculation is very expensive.
We use a weak hash map because we don't want this cache to be the only reason
nodes are kept around in the JVM, if all other references to them are gone.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()get(DomElement element, String normalizedPseudo) voidnodeChanged(DomNode changed, boolean clearParents) voidput(DomElement element, String normalizedPseudo, ComputedCssStyleDeclaration style) private void
-
Field Details
-
computedStyles_
-
-
Constructor Details
-
ComputedStylesCache
ComputedStylesCache()
-
-
Method Details
-
get
-
put
-
nodeChanged
-
clear
public void clear() -
remove
-
readObject
- Throws:
IOExceptionClassNotFoundException
-