int origin) {
ImmutableValue im = value.getImmutableValue();
boolean b = im == ValueConstants.NARROWER_VALUE;
if (b || im == ValueConstants.WIDER_VALUE) {
Element p = HiddenChildElementSupport.getParentElement(element);
CSSOMReadOnlyValue val;
if (p == null) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.SEMI_CONDENSED_VALUE
: ValueConstants.SEMI_EXPANDED_VALUE);
} else {
CSSOMReadOnlyStyleDeclaration sd;
sd = (CSSOMReadOnlyStyleDeclaration)view.getComputedStyle
(p, null);
CSSOMReadOnlyValue prop;
prop = (CSSOMReadOnlyValue)sd.getPropertyCSSValue
(getPropertyName());
im = prop.getImmutableValue();
if (im == ValueConstants.NORMAL_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.SEMI_CONDENSED_VALUE
: ValueConstants.SEMI_EXPANDED_VALUE);
} else if (im == ValueConstants.CONDENSED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.EXTRA_CONDENSED_VALUE
: ValueConstants.SEMI_CONDENSED_VALUE);
} else if (im == ValueConstants.SEMI_EXPANDED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.NORMAL_VALUE
: ValueConstants.EXPANDED_VALUE);
} else if (im == ValueConstants.SEMI_CONDENSED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.CONDENSED_VALUE
: ValueConstants.NORMAL_VALUE);
} else if (im == ValueConstants.EXTRA_CONDENSED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.ULTRA_CONDENSED_VALUE
: ValueConstants.CONDENSED_VALUE);
} else if (im == ValueConstants.EXTRA_EXPANDED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.EXPANDED_VALUE
: ValueConstants.ULTRA_EXPANDED_VALUE);
} else if (im == ValueConstants.ULTRA_CONDENSED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.ULTRA_CONDENSED_VALUE
: ValueConstants.EXTRA_CONDENSED_VALUE);
} else {//if (im == ValueConstants.ULTRA_EXPANDED_VALUE) {
val = new CSSOMReadOnlyValue((b)
? ValueConstants.EXTRA_EXPANDED_VALUE
: ValueConstants.ULTRA_EXPANDED_VALUE);
}
}
styleDeclaration.setPropertyCSSValue(getPropertyName(),