Class HtmlPage.ComputedStylesCache

java.lang.Object
org.htmlunit.html.HtmlPage.ComputedStylesCache
All Implemented Interfaces:
Serializable
Enclosing class:
HtmlPage

private static final class HtmlPage.ComputedStylesCache extends Object implements Serializable
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.