public CalculatedStyle getStyle(Element e, boolean restyle) { if (styleMap == null) { styleMap = new HashMap<Element, CalculatedStyle>(1024, 0.75f); } CalculatedStyle result = null; if (! restyle) { result = styleMap.get(e); } if (result == null) { Node parent = e.getParentNode(); CalculatedStyle parentCalculatedStyle; if (parent instanceof Document) { parentCalculatedStyle = new EmptyStyle(); } else { parentCalculatedStyle = getStyle((Element)parent, false); } result = parentCalculatedStyle.deriveStyle(getCss().getCascadedStyle(e, restyle)); styleMap.put(e, result); } return result; }
if (iB.getElement() != null) { if (iB.getPseudoElementOrClass() == null) { cs = c.getCss().getCascadedStyle(iB.getElement(), false); } else { cs = c.getCss().getPseudoElementStyle(
table.setFloatedBoxData(null); CascadedStyle original = c.getSharedContext().getCss().getCascadedStyle( table.getElement(), false); CascadedStyle modified = CascadedStyle.createLayoutStyle(