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

Unified Diff: Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h

Issue 12288020: Merge 142759 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h
===================================================================
--- Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h (revision 143078)
+++ Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h (working copy)
@@ -46,13 +46,20 @@
return static_cast<SVGListProperty<SVGPathSegList>*>(m_animVal.get());
}
- int removeItemFromList(const RefPtr<SVGPathSeg>& segment, bool shouldSynchronizeWrappers)
+ int findItem(const RefPtr<SVGPathSeg>& segment) const
{
// This should ever be called for our baseVal, as animVal can't modify the list.
ASSERT(m_baseVal);
- return static_cast<SVGPathSegListPropertyTearOff*>(m_baseVal.get())->removeItemFromList(segment, shouldSynchronizeWrappers);
+ return static_cast<SVGPathSegListPropertyTearOff*>(m_baseVal.get())->findItem(segment);
}
+ void removeItemFromList(size_t itemIndex, bool shouldSynchronizeWrappers)
+ {
+ // This should ever be called for our baseVal, as animVal can't modify the list.
+ ASSERT(m_baseVal);
+ static_cast<SVGPathSegListPropertyTearOff*>(m_baseVal.get())->removeItemFromList(itemIndex, shouldSynchronizeWrappers);
+ }
+
static PassRefPtr<SVGAnimatedPathSegListPropertyTearOff> create(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGPathSegList& values)
{
ASSERT(contextElement);
« no previous file with comments | « Source/WebCore/svg/properties/SVGAnimatedListPropertyTearOff.h ('k') | Source/WebCore/svg/properties/SVGListProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698