StyleMap sm,
Value value) {
if (value == ValueConstants.NARROWER_VALUE) {
sm.putParentRelative(idx, true);
CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt);
if (p == null) {
return ValueConstants.SEMI_CONDENSED_VALUE;
}
Value v = engine.getComputedStyle(p, pseudo, idx);
if (v == ValueConstants.NORMAL_VALUE) {
return ValueConstants.SEMI_CONDENSED_VALUE;
}
if (v == ValueConstants.CONDENSED_VALUE) {
return ValueConstants.EXTRA_CONDENSED_VALUE;
}
if (v == ValueConstants.EXPANDED_VALUE) {
return ValueConstants.SEMI_EXPANDED_VALUE;
}
if (v == ValueConstants.SEMI_EXPANDED_VALUE) {
return ValueConstants.NORMAL_VALUE;
}
if (v == ValueConstants.SEMI_CONDENSED_VALUE) {
return ValueConstants.CONDENSED_VALUE;
}
if (v == ValueConstants.EXTRA_CONDENSED_VALUE) {
return ValueConstants.ULTRA_CONDENSED_VALUE;
}
if (v == ValueConstants.EXTRA_EXPANDED_VALUE) {
return ValueConstants.EXPANDED_VALUE;
}
if (v == ValueConstants.ULTRA_CONDENSED_VALUE) {
return ValueConstants.ULTRA_CONDENSED_VALUE;
}
return ValueConstants.EXTRA_EXPANDED_VALUE;
} else if (value == ValueConstants.WIDER_VALUE) {
sm.putParentRelative(idx, true);
CSSStylableElement p = CSSEngine.getParentCSSStylableElement(elt);
if (p == null) {
return ValueConstants.SEMI_CONDENSED_VALUE;
}
Value v = engine.getComputedStyle(p, pseudo, idx);
if (v == ValueConstants.NORMAL_VALUE) {