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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 blink { | 52 namespace blink { |
53 | 53 |
54 using namespace HTMLNames; | 54 using namespace HTMLNames; |
55 | 55 |
56 inline SVGAElement::SVGAElement(Document& document) | 56 inline SVGAElement::SVGAElement(Document& document) |
57 : SVGGraphicsElement(SVGNames::aTag, document) | 57 : SVGGraphicsElement(SVGNames::aTag, document) |
| 58 , SVGURIReference(this) |
58 , m_svgTarget(SVGAnimatedString::create(this, SVGNames::targetAttr, SVGStrin
g::create())) | 59 , m_svgTarget(SVGAnimatedString::create(this, SVGNames::targetAttr, SVGStrin
g::create())) |
59 , m_wasFocusedByMouse(false) | 60 , m_wasFocusedByMouse(false) |
60 { | 61 { |
61 SVGURIReference::initialize(this); | |
62 | |
63 addToPropertyMap(m_svgTarget); | 62 addToPropertyMap(m_svgTarget); |
64 } | 63 } |
65 | 64 |
66 DEFINE_TRACE(SVGAElement) | 65 DEFINE_TRACE(SVGAElement) |
67 { | 66 { |
68 visitor->trace(m_svgTarget); | 67 visitor->trace(m_svgTarget); |
69 SVGGraphicsElement::trace(visitor); | 68 SVGGraphicsElement::trace(visitor); |
70 SVGURIReference::trace(visitor); | 69 SVGURIReference::trace(visitor); |
71 } | 70 } |
72 | 71 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 return SVGElement::canStartSelection(); | 203 return SVGElement::canStartSelection(); |
205 return hasEditableStyle(); | 204 return hasEditableStyle(); |
206 } | 205 } |
207 | 206 |
208 bool SVGAElement::willRespondToMouseClickEvents() | 207 bool SVGAElement::willRespondToMouseClickEvents() |
209 { | 208 { |
210 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); | 209 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); |
211 } | 210 } |
212 | 211 |
213 } // namespace blink | 212 } // namespace blink |
OLD | NEW |