SizeRequirements sr = super.calculateMajorAxisRequirements(axis, r);   return sr;
if (r == null) r = new SizeRequirements();  if (setCSSSpan(r, axis)) {   SizeRequirements parent = super.calculateMajorAxisRequirements(axis, null); int margin = axis == X_AXIS ? getLeftInset() + getRightInset() : getTopInset() + getBottomInset(); r.minimum -= margin; r.preferred -= margin; r.maximum -= margin; constrainSize(axis, r, parent); } else r = super.calculateMajorAxisRequirements(axis, r); return r;
  protected SizeRequirements calculateMajorAxisRequirements(int axis,                                                            SizeRequirements r)  {    SizeRequirements sr = super.calculateMajorAxisRequirements(axis, r);    // FIXME: adjust it if the CSS width or height attribute is specified    // and applicable    return sr;  }