Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)
Patch Set: Rebase; fix comments; findElement Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | third_party/WebKit/Source/core/svg/SVGElementProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698