-
harrison authored
Reviewed by Geoff and John. <rdar://problem/4558879> -[DOMCSSPrimitiveValue setStringValue:] throws an exception (12) * fast/dom/setPrimitiveValue-expected.checksum: Added. * fast/dom/setPrimitiveValue-expected.png: Added. * fast/dom/setPrimitiveValue-expected.txt: Added. * fast/dom/setPrimitiveValue.html: Added. WebCore: Reviewed by Geoff and John. <rdar://problem/4558879> -[DOMCSSPrimitiveValue setStringValue:] throws an exception (12) Problem was the primitive value was getting reset to a generic state before the parameter check that relies on that state. Test: fast/dom/setPrimitiveValue.html * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::setFloatValue): (WebCore::CSSPrimitiveValue::setStringValue): Move parameter checks ahead of call to cleanup(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
37a0f625