| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 { | 85 { |
| 86 // Unlike other SVG*Element classes, SVGAElement only listens to SVGURIRefer
ence changes | 86 // Unlike other SVG*Element classes, SVGAElement only listens to SVGURIRefer
ence changes |
| 87 // as none of the other properties changes the linking behaviour for our <a>
element. | 87 // as none of the other properties changes the linking behaviour for our <a>
element. |
| 88 if (SVGURIReference::isKnownAttribute(attrName)) { | 88 if (SVGURIReference::isKnownAttribute(attrName)) { |
| 89 SVGElement::InvalidationGuard invalidationGuard(this); | 89 SVGElement::InvalidationGuard invalidationGuard(this); |
| 90 | 90 |
| 91 bool wasLink = isLink(); | 91 bool wasLink = isLink(); |
| 92 setIsLink(!hrefString().isNull()); | 92 setIsLink(!hrefString().isNull()); |
| 93 | 93 |
| 94 if (wasLink != isLink()) | 94 if (wasLink != isLink()) |
| 95 setNeedsStyleRecalc(SubtreeStyleChange); | 95 setNeedsStyleRecalc(StyleRecalcDueToLinkColorChange, SubtreeStyleCha
nge); |
| 96 | 96 |
| 97 return; | 97 return; |
| 98 } | 98 } |
| 99 | 99 |
| 100 SVGGraphicsElement::svgAttributeChanged(attrName); | 100 SVGGraphicsElement::svgAttributeChanged(attrName); |
| 101 } | 101 } |
| 102 | 102 |
| 103 RenderObject* SVGAElement::createRenderer(RenderStyle*) | 103 RenderObject* SVGAElement::createRenderer(RenderStyle*) |
| 104 { | 104 { |
| 105 if (parentNode() && parentNode()->isSVGElement() && toSVGElement(parentNode(
))->isTextContent()) | 105 if (parentNode() && parentNode()->isSVGElement() && toSVGElement(parentNode(
))->isTextContent()) |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 return SVGElement::canStartSelection(); | 205 return SVGElement::canStartSelection(); |
| 206 return hasEditableStyle(); | 206 return hasEditableStyle(); |
| 207 } | 207 } |
| 208 | 208 |
| 209 bool SVGAElement::willRespondToMouseClickEvents() | 209 bool SVGAElement::willRespondToMouseClickEvents() |
| 210 { | 210 { |
| 211 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); | 211 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace blink | 214 } // namespace blink |
| OLD | NEW |