Class HtmlPage.ComputedStylesCache

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    HtmlPage

    private static final class HtmlPage.ComputedStylesCache
    extends java.lang.Object
    implements java.io.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.
    • Constructor Detail

      • ComputedStylesCache

        ComputedStylesCache()
    • Method Detail

      • nodeChanged

        public void nodeChanged​(DomNode changed,
                                boolean clearParents)
      • clear

        public void clear()
      • readObject

        private void readObject​(java.io.ObjectInputStream in)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException