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 19 matching lines...) Expand all Loading... |
30 #include "core/rendering/HitTestResult.h" | 30 #include "core/rendering/HitTestResult.h" |
31 #include "core/rendering/RenderImage.h" | 31 #include "core/rendering/RenderImage.h" |
32 #include "core/rendering/RenderView.h" | 32 #include "core/rendering/RenderView.h" |
33 | 33 |
34 using namespace std; | 34 using namespace std; |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 using namespace HTMLNames; | 38 using namespace HTMLNames; |
39 | 39 |
40 inline HTMLAreaElement::HTMLAreaElement(const QualifiedName& tagName, Document*
document) | 40 inline HTMLAreaElement::HTMLAreaElement(const QualifiedName& tagName, Document&
document) |
41 : HTMLAnchorElement(tagName, document) | 41 : HTMLAnchorElement(tagName, document) |
42 , m_lastSize(-1, -1) | 42 , m_lastSize(-1, -1) |
43 , m_shape(Unknown) | 43 , m_shape(Unknown) |
44 { | 44 { |
45 ASSERT(hasTagName(areaTag)); | 45 ASSERT(hasTagName(areaTag)); |
46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
47 } | 47 } |
48 | 48 |
49 PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(const QualifiedName& tagName
, Document* document) | 49 PassRefPtr<HTMLAreaElement> HTMLAreaElement::create(const QualifiedName& tagName
, Document& document) |
50 { | 50 { |
51 return adoptRef(new HTMLAreaElement(tagName, document)); | 51 return adoptRef(new HTMLAreaElement(tagName, document)); |
52 } | 52 } |
53 | 53 |
54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) | 54 void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) |
55 { | 55 { |
56 if (name == shapeAttr) { | 56 if (name == shapeAttr) { |
57 if (equalIgnoringCase(value, "default")) | 57 if (equalIgnoringCase(value, "default")) |
58 m_shape = Default; | 58 m_shape = Default; |
59 else if (equalIgnoringCase(value, "circle")) | 59 else if (equalIgnoringCase(value, "circle")) |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // FIXME: This means that an AREA that is not a link cannot be made focusabl
e through contenteditable or tabindex. Is it correct? | 246 // FIXME: This means that an AREA that is not a link cannot be made focusabl
e through contenteditable or tabindex. Is it correct? |
247 return isLink(); | 247 return isLink(); |
248 } | 248 } |
249 | 249 |
250 String HTMLAreaElement::target() const | 250 String HTMLAreaElement::target() const |
251 { | 251 { |
252 return getAttribute(targetAttr); | 252 return getAttribute(targetAttr); |
253 } | 253 } |
254 | 254 |
255 } | 255 } |
OLD | NEW |