code: public void copyValues(ElementBox src)
      {
          super.copyValues(src);
          nested.addAll(src.nested);
          textonly = src.textonly;
          pseudoElements = new HashMap<>(src.pseudoElements);
          style = src.style; 
          pseudoStyle = new HashMap<>(src.pseudoStyle);
          startChild = src.startChild;
          endChild = src.endChild;
          isblock = src.isblock;
          style = src.style;
          display = src.display;
          lineHeight = src.lineHeight;
          whitespace = src.whitespace;
          bgcolor = (src.bgcolor == null) ? null : new Color(src.bgcolor.getRed(), src.bgcolor.getGreen(), src.bgcolor.getBlue(), src.bgcolor.getAlpha());
          bgimages = (src.bgimages == null) ? null : new Vector<BackgroundImage>(src.bgimages);
          transform = src.transform;
          position = src.position;
          topset = src.topset;
          leftset = src.leftset;
          bottomset = src.bottomset;
          rightset = src.rightset;
          
          if (src.coords != null)
              coords = new LengthSet(src.coords);
          
          if (src.margin != null)
              margin = new LengthSet(src.margin);
          if (src.emargin != null)
              emargin = new LengthSet(src.emargin);
          if (src.border != null)
              border = new LengthSet(src.border);
          if (src.padding != null)
              padding = new LengthSet(src.padding);
          if (src.content != null)
              content = new Dimension(src.content);
      }
docs: Copy the values from another element box.
  @param src source element box