* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
* @return The value of this property.
*/
private int getKeywordValue(final FoContext context, final FObj fobj) {
final FoPropertyKeyword kw = (FoPropertyKeyword) value();
final FObj effectiveParent = fobj.effectiveParent(context);
switch (kw.getValue()) {
case INHERIT: {
final RelativeCompass direction = this.getRelativeCompass(context,
fobj);
if (direction == RelativeCompass.BEFORE) {
return effectiveParent.traitPaddingBefore(context);