OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "core/rendering/svg/RenderSVGText.h" | 46 #include "core/rendering/svg/RenderSVGText.h" |
47 #include "core/rendering/svg/RenderSVGTransformableContainer.h" | 47 #include "core/rendering/svg/RenderSVGTransformableContainer.h" |
48 #include "core/svg/animation/SVGSMILElement.h" | 48 #include "core/svg/animation/SVGSMILElement.h" |
49 #include "platform/PlatformMouseEvent.h" | 49 #include "platform/PlatformMouseEvent.h" |
50 #include "platform/network/ResourceRequest.h" | 50 #include "platform/network/ResourceRequest.h" |
51 | 51 |
52 namespace WebCore { | 52 namespace WebCore { |
53 | 53 |
54 using namespace HTMLNames; | 54 using namespace HTMLNames; |
55 | 55 |
56 SVGAElement::SVGAElement(Document& document) | 56 inline SVGAElement::SVGAElement(Document& document) |
57 : SVGGraphicsElement(SVGNames::aTag, document) | 57 : SVGGraphicsElement(SVGNames::aTag, document) |
58 , SVGURIReference(this) | 58 , SVGURIReference(this) |
59 , m_svgTarget(SVGAnimatedString::create(this, SVGNames::targetAttr, SVGStrin
g::create())) | 59 , m_svgTarget(SVGAnimatedString::create(this, SVGNames::targetAttr, SVGStrin
g::create())) |
60 { | 60 { |
61 ScriptWrappable::init(this); | 61 ScriptWrappable::init(this); |
62 addToPropertyMap(m_svgTarget); | 62 addToPropertyMap(m_svgTarget); |
63 } | 63 } |
64 | 64 |
| 65 DEFINE_NODE_FACTORY(SVGAElement) |
| 66 |
65 String SVGAElement::title() const | 67 String SVGAElement::title() const |
66 { | 68 { |
67 // If the xlink:title is set (non-empty string), use it. | 69 // If the xlink:title is set (non-empty string), use it. |
68 const AtomicString& title = fastGetAttribute(XLinkNames::titleAttr); | 70 const AtomicString& title = fastGetAttribute(XLinkNames::titleAttr); |
69 if (!title.isEmpty()) | 71 if (!title.isEmpty()) |
70 return title; | 72 return title; |
71 | 73 |
72 // Otherwise, use the title of this element. | 74 // Otherwise, use the title of this element. |
73 return SVGElement::title(); | 75 return SVGElement::title(); |
74 } | 76 } |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 return SVGElement::canStartSelection(); | 216 return SVGElement::canStartSelection(); |
215 return rendererIsEditable(); | 217 return rendererIsEditable(); |
216 } | 218 } |
217 | 219 |
218 bool SVGAElement::willRespondToMouseClickEvents() | 220 bool SVGAElement::willRespondToMouseClickEvents() |
219 { | 221 { |
220 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); | 222 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); |
221 } | 223 } |
222 | 224 |
223 } // namespace WebCore | 225 } // namespace WebCore |
OLD | NEW |