| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 553 |
| 554 SVGElement* SVGElement::correspondingElement() | 554 SVGElement* SVGElement::correspondingElement() |
| 555 { | 555 { |
| 556 ASSERT(!hasSVGRareData() || !svgRareData()->correspondingElement() || contai
ningShadowRoot()); | 556 ASSERT(!hasSVGRareData() || !svgRareData()->correspondingElement() || contai
ningShadowRoot()); |
| 557 return hasSVGRareData() ? svgRareData()->correspondingElement() : 0; | 557 return hasSVGRareData() ? svgRareData()->correspondingElement() : 0; |
| 558 } | 558 } |
| 559 | 559 |
| 560 SVGUseElement* SVGElement::correspondingUseElement() const | 560 SVGUseElement* SVGElement::correspondingUseElement() const |
| 561 { | 561 { |
| 562 if (ShadowRoot* root = containingShadowRoot()) { | 562 if (ShadowRoot* root = containingShadowRoot()) { |
| 563 if (isSVGUseElement(root->host()) && (root->type() == ShadowRoot::UserAg
entShadowRoot)) | 563 if (isSVGUseElement(root->host()) && (root->type() == ShadowRoot::Closed
ShadowRoot)) |
| 564 return toSVGUseElement(root->host()); | 564 return toSVGUseElement(root->host()); |
| 565 } | 565 } |
| 566 return 0; | 566 return 0; |
| 567 } | 567 } |
| 568 | 568 |
| 569 void SVGElement::setCorrespondingElement(SVGElement* correspondingElement) | 569 void SVGElement::setCorrespondingElement(SVGElement* correspondingElement) |
| 570 { | 570 { |
| 571 ensureSVGRareData()->setCorrespondingElement(correspondingElement); | 571 ensureSVGRareData()->setCorrespondingElement(correspondingElement); |
| 572 } | 572 } |
| 573 | 573 |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 Element::trace(visitor); | 1191 Element::trace(visitor); |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 const AtomicString& SVGElement::eventParameterName() | 1194 const AtomicString& SVGElement::eventParameterName() |
| 1195 { | 1195 { |
| 1196 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1196 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
| 1197 return evtString; | 1197 return evtString; |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 } // namespace blink | 1200 } // namespace blink |
| OLD | NEW |