| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 , 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 , m_wasFocusedByMouse(false) | 60 , m_wasFocusedByMouse(false) |
| 61 { | 61 { |
| 62 ScriptWrappable::init(this); | |
| 63 addToPropertyMap(m_svgTarget); | 62 addToPropertyMap(m_svgTarget); |
| 64 } | 63 } |
| 65 | 64 |
| 66 DEFINE_NODE_FACTORY(SVGAElement) | 65 DEFINE_NODE_FACTORY(SVGAElement) |
| 67 | 66 |
| 68 String SVGAElement::title() const | 67 String SVGAElement::title() const |
| 69 { | 68 { |
| 70 // If the xlink:title is set (non-empty string), use it. | 69 // If the xlink:title is set (non-empty string), use it. |
| 71 const AtomicString& title = fastGetAttribute(XLinkNames::titleAttr); | 70 const AtomicString& title = fastGetAttribute(XLinkNames::titleAttr); |
| 72 if (!title.isEmpty()) | 71 if (!title.isEmpty()) |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 return SVGElement::canStartSelection(); | 204 return SVGElement::canStartSelection(); |
| 206 return hasEditableStyle(); | 205 return hasEditableStyle(); |
| 207 } | 206 } |
| 208 | 207 |
| 209 bool SVGAElement::willRespondToMouseClickEvents() | 208 bool SVGAElement::willRespondToMouseClickEvents() |
| 210 { | 209 { |
| 211 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); | 210 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); |
| 212 } | 211 } |
| 213 | 212 |
| 214 } // namespace blink | 213 } // namespace blink |
| OLD | NEW |