| Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| index ce5e0ec68a37ebe2d64c9cc63a62de59e7b6b265..db8af6744e0bbcb9994a38bfaa966165909090ab 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| @@ -294,17 +294,16 @@ bool HTMLSelectElement::isPresentationAttribute(
|
| return HTMLFormControlElementWithState::isPresentationAttribute(name);
|
| }
|
|
|
| -void HTMLSelectElement::parseAttribute(const QualifiedName& name,
|
| - const AtomicString& oldValue,
|
| - const AtomicString& value) {
|
| - if (name == sizeAttr) {
|
| +void HTMLSelectElement::parseAttribute(
|
| + const AttributeModificationParams& params) {
|
| + if (params.name == sizeAttr) {
|
| unsigned oldSize = m_size;
|
| // Set the attribute value to a number.
|
| // This is important since the style rules for this attribute can
|
| // determine the appearance property.
|
| - unsigned size = value.getString().toUInt();
|
| + unsigned size = params.newValue.getString().toUInt();
|
| AtomicString attrSize = AtomicString::number(size);
|
| - if (attrSize != value) {
|
| + if (attrSize != params.newValue) {
|
| // FIXME: This is horribly factored.
|
| if (Attribute* sizeAttribute =
|
| ensureUniqueElementData().attributes().find(sizeAttr))
|
| @@ -319,13 +318,13 @@ void HTMLSelectElement::parseAttribute(const QualifiedName& name,
|
| if (!usesMenuList())
|
| saveListboxActiveSelection();
|
| }
|
| - } else if (name == multipleAttr) {
|
| - parseMultipleAttribute(value);
|
| - } else if (name == accesskeyAttr) {
|
| + } else if (params.name == multipleAttr) {
|
| + parseMultipleAttribute(params.newValue);
|
| + } else if (params.name == accesskeyAttr) {
|
| // FIXME: ignore for the moment.
|
| //
|
| } else {
|
| - HTMLFormControlElementWithState::parseAttribute(name, oldValue, value);
|
| + HTMLFormControlElementWithState::parseAttribute(params);
|
| }
|
| }
|
|
|
|
|