code: private void computeInheritedStyle(ElementBox dest, ElementBox parent)
      {
          NodeData newstyle = dest.getStyle().inheritFrom(parent.getStyle()); 
          dest.setStyle(newstyle);
      }
docs: Computes the style of a node based on its parent using the CSS inheritance.
  @param dest the box whose style should be computed
  @param parent the parent box