l = (Length) as.getAttribute(CSS.Attribute.PADDING_LEFT); if (l != null) { l.setFontBases(emBase, exBase); leftPadding = l.getValue(); } l = (Length) as.getAttribute(CSS.Attribute.PADDING_RIGHT); if (l != null) { l.setFontBases(emBase, exBase); rightPadding = l.getValue(); } l = (Length) as.getAttribute(CSS.Attribute.PADDING_TOP); if (l != null) { l.setFontBases(emBase, exBase); topPadding = l.getValue(); } l = (Length) as.getAttribute(CSS.Attribute.PADDING_BOTTOM); if (l != null) { l.setFontBases(emBase, exBase); bottomPadding = l.getValue(); }   border = new CSSBorder(as, ss);   background = ss.getBackground(as);  }
    BoxPainter(AttributeSet as)    {      Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT);      if (l != null)        leftInset = l.getValue();      l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT);      if (l != null)        rightInset = l.getValue();      l = (Length) as.getAttribute(CSS.Attribute.MARGIN_TOP);      if (l != null)        topInset = l.getValue();      l = (Length) as.getAttribute(CSS.Attribute.MARGIN_BOTTOM);      if (l != null)        bottomInset = l.getValue();    }