-
adele authored
Reviewed by Hyatt. Test for <rdar://problem/4697438> REGRESSION: select menu lists match the wrong css rule on www.chainreaction.com * fast/forms/select-size-expected.checksum: Added. * fast/forms/select-size-expected.png: Added. * fast/forms/select-size-expected.txt: Added. * fast/forms/select-size.html: Added. WebCore: Reviewed by Hyatt. Fix for: <rdar://problem/4697438> REGRESSION: select menu lists match the wrong css rule on www.chainreaction.com Update the size attribute value for select elements to match the numeric value. This is a special case since this attribute is used to determine which control to use. We want to make sure that the size attribute is valid when we match CSS rules. Test: fast/forms/select-size.html * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::parseMappedAttribute): If the attribute string value is not the same as its integer value, then update the attribute value to match the integer. * dom/Attribute.h: Made setValue and setPrefix public. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6dcf3eaa