(CSSPrimitiveValue)decl.getPropertyCSSValueInternal
(CSS_CLIP_PROPERTY);
switch (clip.getPrimitiveType()) {
case CSSPrimitiveValue.CSS_RECT:
float [] off = new float[4];
Rect r = clip.getRectValue();
off[0] = r.getTop().getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
off[1] = r.getRight().getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
off[2] = r.getBottom().getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
off[3] = r.getLeft().getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
return off;
case CSSPrimitiveValue.CSS_IDENT:
return null; // 'auto' means no offsets
default:
throw new Error(); // can't be reached