diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
commit | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch) | |
tree | cdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebCore/html/HTMLOptionElement.cpp | |
parent | 1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff) | |
download | qtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz |
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
Diffstat (limited to 'Source/WebCore/html/HTMLOptionElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLOptionElement.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebCore/html/HTMLOptionElement.cpp b/Source/WebCore/html/HTMLOptionElement.cpp index baf6ca98e..7bce8e614 100644 --- a/Source/WebCore/html/HTMLOptionElement.cpp +++ b/Source/WebCore/html/HTMLOptionElement.cpp @@ -185,26 +185,26 @@ int HTMLOptionElement::index() const return 0; } -void HTMLOptionElement::parseAttribute(Attribute* attr) +void HTMLOptionElement::parseAttribute(const Attribute& attribute) { - if (attr->name() == disabledAttr) { + if (attribute.name() == disabledAttr) { bool oldDisabled = m_disabled; - m_disabled = !attr->isNull(); + m_disabled = !attribute.isNull(); if (oldDisabled != m_disabled) { setNeedsStyleRecalc(); if (renderer() && renderer()->style()->hasAppearance()) renderer()->theme()->stateChanged(renderer(), EnabledState); } - } else if (attr->name() == selectedAttr) { + } else if (attribute.name() == selectedAttr) { // FIXME: This doesn't match what the HTML specification says. // The specification implies that removing the selected attribute or // changing the value of a selected attribute that is already present // has no effect on whether the element is selected. Further, it seems // that we need to do more than just set m_isSelected to select in that // case; we'd need to do the other work from the setSelected function. - m_isSelected = !attr->isNull(); + m_isSelected = !attribute.isNull(); } else - HTMLElement::parseAttribute(attr); + HTMLElement::parseAttribute(attribute); } String HTMLOptionElement::value() const |