if (property != null) {
return property.getValue(context, fobj, paddingRectangleHeight,
backgroundImageHeight);
}
// Try the first shorthand
PdBackgroundPosition backgroundPosition = (PdBackgroundPosition)
getProperty(FoProperty.BACKGROUND_POSITION);
if (backgroundPosition != null) {
return backgroundPosition.getShorthandValue(context,
fobj, AbsoluteAxis.VERTICAL,
paddingRectangleHeight, backgroundImageHeight);
}
// Try the second shorthand
final PdBackground background = (PdBackground) getProperty(
FoProperty.BACKGROUND);
if (background != null) {
backgroundPosition = background.getPosition();
if (backgroundPosition != null) {
return backgroundPosition.getShorthandValue(context,
fobj, AbsoluteAxis.VERTICAL,
paddingRectangleHeight, backgroundImageHeight);
}
}
return AbstractBackgroundPosition.getValueNoInstance();