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/HTMLAreaElement.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/HTMLAreaElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLAreaElement.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/WebCore/html/HTMLAreaElement.cpp b/Source/WebCore/html/HTMLAreaElement.cpp index d3ea24258..6e7f99ddc 100644 --- a/Source/WebCore/html/HTMLAreaElement.cpp +++ b/Source/WebCore/html/HTMLAreaElement.cpp @@ -53,25 +53,25 @@ PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(const QualifiedName& tagName return adoptRef(new HTMLAreaElement(tagName, document)); } -void HTMLAreaElement::parseAttribute(Attribute* attr) +void HTMLAreaElement::parseAttribute(const Attribute& attribute) { - if (attr->name() == shapeAttr) { - if (equalIgnoringCase(attr->value(), "default")) + if (attribute.name() == shapeAttr) { + if (equalIgnoringCase(attribute.value(), "default")) m_shape = Default; - else if (equalIgnoringCase(attr->value(), "circle")) + else if (equalIgnoringCase(attribute.value(), "circle")) m_shape = Circle; - else if (equalIgnoringCase(attr->value(), "poly")) + else if (equalIgnoringCase(attribute.value(), "poly")) m_shape = Poly; - else if (equalIgnoringCase(attr->value(), "rect")) + else if (equalIgnoringCase(attribute.value(), "rect")) m_shape = Rect; invalidateCachedRegion(); - } else if (attr->name() == coordsAttr) { - m_coords = newCoordsArray(attr->value().string(), m_coordsLen); + } else if (attribute.name() == coordsAttr) { + m_coords = newCoordsArray(attribute.value().string(), m_coordsLen); invalidateCachedRegion(); - } else if (attr->name() == altAttr || attr->name() == accesskeyAttr) { + } else if (attribute.name() == altAttr || attribute.name() == accesskeyAttr) { // Do nothing. } else - HTMLAnchorElement::parseAttribute(attr); + HTMLAnchorElement::parseAttribute(attribute); } void HTMLAreaElement::invalidateCachedRegion() |