OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann |
3 * <zimmermann@kde.org> | 3 * <zimmermann@kde.org> |
4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1167 SVGNames::zAttr, | 1167 SVGNames::zAttr, |
1168 })); | 1168 })); |
1169 | 1169 |
1170 if (name == classAttr) | 1170 if (name == classAttr) |
1171 return true; | 1171 return true; |
1172 | 1172 |
1173 return animatableAttributes.contains(name); | 1173 return animatableAttributes.contains(name); |
1174 } | 1174 } |
1175 #endif // DCHECK_IS_ON() | 1175 #endif // DCHECK_IS_ON() |
1176 | 1176 |
1177 SVGElementProxySet* SVGElement::elementProxySet() { | |
1178 // Limit to specific element types. | |
pdr.
2016/11/15 04:14:35
Nit: the comment above SVGElementProxySet needs to
fs
2016/11/15 14:10:56
Updated that comment to point to this method.
| |
1179 if (!isSVGFilterElement(*this) && !isSVGClipPathElement(*this)) | |
1180 return nullptr; | |
1181 return &ensureSVGRareData()->ensureElementProxySet(); | |
1182 } | |
1183 | |
1177 SVGElementSet* SVGElement::setOfIncomingReferences() const { | 1184 SVGElementSet* SVGElement::setOfIncomingReferences() const { |
1178 if (!hasSVGRareData()) | 1185 if (!hasSVGRareData()) |
1179 return nullptr; | 1186 return nullptr; |
1180 return &svgRareData()->incomingReferences(); | 1187 return &svgRareData()->incomingReferences(); |
1181 } | 1188 } |
1182 | 1189 |
1183 void SVGElement::addReferenceTo(SVGElement* targetElement) { | 1190 void SVGElement::addReferenceTo(SVGElement* targetElement) { |
1184 ASSERT(targetElement); | 1191 ASSERT(targetElement); |
1185 | 1192 |
1186 ensureSVGRareData()->outgoingReferences().add(targetElement); | 1193 ensureSVGRareData()->outgoingReferences().add(targetElement); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1237 visitor->trace(m_className); | 1244 visitor->trace(m_className); |
1238 Element::trace(visitor); | 1245 Element::trace(visitor); |
1239 } | 1246 } |
1240 | 1247 |
1241 const AtomicString& SVGElement::eventParameterName() { | 1248 const AtomicString& SVGElement::eventParameterName() { |
1242 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1249 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
1243 return evtString; | 1250 return evtString; |
1244 } | 1251 } |
1245 | 1252 |
1246 } // namespace blink | 1253 } // namespace blink |
OLD | NEW |