| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 return toSVGSVGElement(n); | 440 return toSVGSVGElement(n); |
| 441 | 441 |
| 442 n = n->parentOrShadowHostNode(); | 442 n = n->parentOrShadowHostNode(); |
| 443 } | 443 } |
| 444 | 444 |
| 445 return 0; | 445 return 0; |
| 446 } | 446 } |
| 447 | 447 |
| 448 SVGElement* SVGElement::viewportElement() const | 448 SVGElement* SVGElement::viewportElement() const |
| 449 { | 449 { |
| 450 // This function needs shadow tree support - as RenderSVGContainer uses this
function | 450 // This function needs shadow tree support - as LayoutSVGContainer uses this
function |
| 451 // to determine the "overflow" property. <use> on <symbol> wouldn't work oth
erwhise. | 451 // to determine the "overflow" property. <use> on <symbol> wouldn't work oth
erwhise. |
| 452 ContainerNode* n = parentOrShadowHostNode(); | 452 ContainerNode* n = parentOrShadowHostNode(); |
| 453 while (n) { | 453 while (n) { |
| 454 if (isSVGSVGElement(*n) || isSVGImageElement(*n) || isSVGSymbolElement(*
n)) | 454 if (isSVGSVGElement(*n) || isSVGImageElement(*n) || isSVGSymbolElement(*
n)) |
| 455 return toSVGElement(n); | 455 return toSVGElement(n); |
| 456 | 456 |
| 457 n = n->parentOrShadowHostNode(); | 457 n = n->parentOrShadowHostNode(); |
| 458 } | 458 } |
| 459 | 459 |
| 460 return 0; | 460 return 0; |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 Element::trace(visitor); | 1184 Element::trace(visitor); |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 const AtomicString& SVGElement::eventParameterName() | 1187 const AtomicString& SVGElement::eventParameterName() |
| 1188 { | 1188 { |
| 1189 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1189 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
| 1190 return evtString; | 1190 return evtString; |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 } // namespace blink | 1193 } // namespace blink |
| OLD | NEW |