OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 QualifiedName constructQualifiedName(const SVGElement& svgElement, | 73 QualifiedName constructQualifiedName(const SVGElement& svgElement, |
74 const AtomicString& attributeName) { | 74 const AtomicString& attributeName) { |
75 if (attributeName.isEmpty()) | 75 if (attributeName.isEmpty()) |
76 return anyQName(); | 76 return anyQName(); |
77 if (!attributeName.contains(':')) | 77 if (!attributeName.contains(':')) |
78 return QualifiedName(nullAtom, attributeName, nullAtom); | 78 return QualifiedName(nullAtom, attributeName, nullAtom); |
79 | 79 |
80 AtomicString prefix; | 80 AtomicString prefix; |
81 AtomicString localName; | 81 AtomicString localName; |
82 if (!Document::parseQualifiedName(attributeName, prefix, localName, | 82 if (!Document::parseQualifiedName(attributeName, prefix, localName, |
83 IGNORE_EXCEPTION)) | 83 IGNORE_EXCEPTION_FOR_TESTING)) |
84 return anyQName(); | 84 return anyQName(); |
85 | 85 |
86 const AtomicString& namespaceURI = svgElement.lookupNamespaceURI(prefix); | 86 const AtomicString& namespaceURI = svgElement.lookupNamespaceURI(prefix); |
87 if (namespaceURI.isEmpty()) | 87 if (namespaceURI.isEmpty()) |
88 return anyQName(); | 88 return anyQName(); |
89 | 89 |
90 QualifiedName resolvedAttrName(nullAtom, localName, namespaceURI); | 90 QualifiedName resolvedAttrName(nullAtom, localName, namespaceURI); |
91 // "Animation elements treat attributeName='xlink:href' as being an alias | 91 // "Animation elements treat attributeName='xlink:href' as being an alias |
92 // for targetting the 'href' attribute." | 92 // for targetting the 'href' attribute." |
93 // https://svgwg.org/svg2-draft/types.html#__svg__SVGURIReference__href | 93 // https://svgwg.org/svg2-draft/types.html#__svg__SVGURIReference__href |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 DEFINE_TRACE(SVGAnimateElement) { | 614 DEFINE_TRACE(SVGAnimateElement) { |
615 visitor->trace(m_fromProperty); | 615 visitor->trace(m_fromProperty); |
616 visitor->trace(m_toProperty); | 616 visitor->trace(m_toProperty); |
617 visitor->trace(m_toAtEndOfDurationProperty); | 617 visitor->trace(m_toAtEndOfDurationProperty); |
618 visitor->trace(m_animatedValue); | 618 visitor->trace(m_animatedValue); |
619 visitor->trace(m_targetProperty); | 619 visitor->trace(m_targetProperty); |
620 SVGAnimationElement::trace(visitor); | 620 SVGAnimationElement::trace(visitor); |
621 } | 621 } |
622 | 622 |
623 } // namespace blink | 623 } // namespace blink |
OLD | NEW |