| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // definition. | 60 // definition. |
| 61 HTMLAreaElement::~HTMLAreaElement() | 61 HTMLAreaElement::~HTMLAreaElement() |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 DEFINE_NODE_FACTORY(HTMLAreaElement) | 65 DEFINE_NODE_FACTORY(HTMLAreaElement) |
| 66 | 66 |
| 67 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& oldValue, const AtomicString& value) | 67 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& oldValue, const AtomicString& value) |
| 68 { | 68 { |
| 69 if (name == shapeAttr) { | 69 if (name == shapeAttr) { |
| 70 if (equalIgnoringCase(value, "default")) | 70 if (equalIgnoringASCIICase(value, "default")) |
| 71 m_shape = Default; | 71 m_shape = Default; |
| 72 else if (equalIgnoringCase(value, "circle")) | 72 else if (equalIgnoringASCIICase(value, "circle")) |
| 73 m_shape = Circle; | 73 m_shape = Circle; |
| 74 else if (equalIgnoringCase(value, "poly")) | 74 else if (equalIgnoringASCIICase(value, "poly")) |
| 75 m_shape = Poly; | 75 m_shape = Poly; |
| 76 else if (equalIgnoringCase(value, "rect")) | 76 else if (equalIgnoringASCIICase(value, "rect")) |
| 77 m_shape = Rect; | 77 m_shape = Rect; |
| 78 invalidateCachedRegion(); | 78 invalidateCachedRegion(); |
| 79 } else if (name == coordsAttr) { | 79 } else if (name == coordsAttr) { |
| 80 m_coords = parseHTMLAreaElementCoords(value.string()); | 80 m_coords = parseHTMLAreaElementCoords(value.string()); |
| 81 invalidateCachedRegion(); | 81 invalidateCachedRegion(); |
| 82 } else if (name == altAttr || name == accesskeyAttr) { | 82 } else if (name == altAttr || name == accesskeyAttr) { |
| 83 // Do nothing. | 83 // Do nothing. |
| 84 } else { | 84 } else { |
| 85 HTMLAnchorElement::parseAttribute(name, oldValue, value); | 85 HTMLAnchorElement::parseAttribute(name, oldValue, value); |
| 86 } | 86 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 void HTMLAreaElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionBe
havior) | 230 void HTMLAreaElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionBe
havior) |
| 231 { | 231 { |
| 232 if (!isFocusable()) | 232 if (!isFocusable()) |
| 233 return; | 233 return; |
| 234 | 234 |
| 235 if (HTMLImageElement* imageElement = this->imageElement()) | 235 if (HTMLImageElement* imageElement = this->imageElement()) |
| 236 imageElement->updateFocusAppearance(selectionBehavior); | 236 imageElement->updateFocusAppearance(selectionBehavior); |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace blink | 239 } // namespace blink |
| OLD | NEW |