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 28 matching lines...) Expand all Loading... |
39 using namespace HTMLNames; | 39 using namespace HTMLNames; |
40 | 40 |
41 inline HTMLAreaElement::HTMLAreaElement(Document& document) | 41 inline HTMLAreaElement::HTMLAreaElement(Document& document) |
42 : HTMLAnchorElement(areaTag, document) | 42 : HTMLAnchorElement(areaTag, document) |
43 , m_lastSize(-1, -1) | 43 , m_lastSize(-1, -1) |
44 , m_shape(Unknown) | 44 , m_shape(Unknown) |
45 { | 45 { |
46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
47 } | 47 } |
48 | 48 |
49 PassRefPtrWillBeRawPtr<HTMLAreaElement> HTMLAreaElement::create(Document& docume
nt) | 49 DEFINE_NODE_FACTORY(HTMLAreaElement) |
50 { | |
51 return adoptRefWillBeRefCountedGarbageCollected(new HTMLAreaElement(document
)); | |
52 } | |
53 | 50 |
54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) | 51 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) |
55 { | 52 { |
56 if (name == shapeAttr) { | 53 if (name == shapeAttr) { |
57 if (equalIgnoringCase(value, "default")) | 54 if (equalIgnoringCase(value, "default")) |
58 m_shape = Default; | 55 m_shape = Default; |
59 else if (equalIgnoringCase(value, "circle")) | 56 else if (equalIgnoringCase(value, "circle")) |
60 m_shape = Circle; | 57 m_shape = Circle; |
61 else if (equalIgnoringCase(value, "poly")) | 58 else if (equalIgnoringCase(value, "poly")) |
62 m_shape = Poly; | 59 m_shape = Poly; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 return; | 230 return; |
234 | 231 |
235 HTMLImageElement* imageElement = this->imageElement(); | 232 HTMLImageElement* imageElement = this->imageElement(); |
236 if (!imageElement) | 233 if (!imageElement) |
237 return; | 234 return; |
238 | 235 |
239 imageElement->updateFocusAppearance(restorePreviousSelection); | 236 imageElement->updateFocusAppearance(restorePreviousSelection); |
240 } | 237 } |
241 | 238 |
242 } | 239 } |
OLD | NEW |