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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 28 matching lines...) Expand all
39 return static_cast<SVGListProperty<SVGPathSegList>*>(m_baseVal.get()); 39 return static_cast<SVGListProperty<SVGPathSegList>*>(m_baseVal.get());
40 } 40 }
41 41
42 virtual SVGListProperty<SVGPathSegList>* animVal() 42 virtual SVGListProperty<SVGPathSegList>* animVal()
43 { 43 {
44 if (!m_animVal) 44 if (!m_animVal)
45 m_animVal = SVGPathSegListPropertyTearOff::create(this, AnimValRole, PathSegUnalteredRole, m_values, m_wrappers); 45 m_animVal = SVGPathSegListPropertyTearOff::create(this, AnimValRole, PathSegUnalteredRole, m_values, m_wrappers);
46 return static_cast<SVGListProperty<SVGPathSegList>*>(m_animVal.get()); 46 return static_cast<SVGListProperty<SVGPathSegList>*>(m_animVal.get());
47 } 47 }
48 48
49 int removeItemFromList(const RefPtr<SVGPathSeg>& segment, bool shouldSynchro nizeWrappers) 49 int findItem(const RefPtr<SVGPathSeg>& segment) const
50 { 50 {
51 // This should ever be called for our baseVal, as animVal can't modify t he list. 51 // This should ever be called for our baseVal, as animVal can't modify t he list.
52 ASSERT(m_baseVal); 52 ASSERT(m_baseVal);
53 return static_cast<SVGPathSegListPropertyTearOff*>(m_baseVal.get())->rem oveItemFromList(segment, shouldSynchronizeWrappers); 53 return static_cast<SVGPathSegListPropertyTearOff*>(m_baseVal.get())->fin dItem(segment);
54 }
55
56 void removeItemFromList(size_t itemIndex, bool shouldSynchronizeWrappers)
57 {
58 // This should ever be called for our baseVal, as animVal can't modify t he list.
59 ASSERT(m_baseVal);
60 static_cast<SVGPathSegListPropertyTearOff*>(m_baseVal.get())->removeItem FromList(itemIndex, shouldSynchronizeWrappers);
54 } 61 }
55 62
56 static PassRefPtr<SVGAnimatedPathSegListPropertyTearOff> create(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animate dPropertyType, SVGPathSegList& values) 63 static PassRefPtr<SVGAnimatedPathSegListPropertyTearOff> create(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animate dPropertyType, SVGPathSegList& values)
57 { 64 {
58 ASSERT(contextElement); 65 ASSERT(contextElement);
59 return adoptRef(new SVGAnimatedPathSegListPropertyTearOff(contextElement , attributeName, animatedPropertyType, values)); 66 return adoptRef(new SVGAnimatedPathSegListPropertyTearOff(contextElement , attributeName, animatedPropertyType, values));
60 } 67 }
61 68
62 using SVGAnimatedListPropertyTearOff<SVGPathSegList>::animationStarted; 69 using SVGAnimatedListPropertyTearOff<SVGPathSegList>::animationStarted;
63 void animationStarted(SVGPathByteStream* byteStream, const SVGPathSegList* b aseValue) 70 void animationStarted(SVGPathByteStream* byteStream, const SVGPathSegList* b aseValue)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 { 111 {
105 } 112 }
106 113
107 SVGPathByteStream* m_animatedPathByteStream; 114 SVGPathByteStream* m_animatedPathByteStream;
108 }; 115 };
109 116
110 } 117 }
111 118
112 #endif // ENABLE(SVG) 119 #endif // ENABLE(SVG)
113 #endif // SVGAnimatedPathSegListPropertyTearOff_h 120 #endif // SVGAnimatedPathSegListPropertyTearOff_h
OLDNEW
« 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