private void getCssXmlValue()
{
if(source == SvgLengthSource.Css)
{
ICssStyleDeclaration csd = this.ownerElement.GetComputedStyle(String.Empty);
CssPrimitiveLengthValue cssValue = csd.GetPropertyCssValue(propertyName) as CssPrimitiveLengthValue;
if(cssValue != null)
{
cssLength = new CssAbsPrimitiveLengthValue(cssValue, propertyName, ownerElement);
}
else
{
throw new DomException(DomExceptionType.SyntaxErr, "Not a length value");
}
}
else
{
string baseVal = ownerElement.GetAttribute(propertyName);
if(baseVal == null || baseVal.Length == 0)
{
baseVal = defaultValue;
}
baseVal = SvgNumber.ScientificToDec(baseVal);
cssLength = new CssAbsPrimitiveLengthValue(new CssPrimitiveLengthValue(baseVal, false), propertyName, ownerElement);
}
}