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

Side by Side Diff: Source/core/svg/properties/SVGListPropertyHelper.h

Issue 803443002: Introduce InlinedGlobalMarkingVisitor Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/svg/SVGPathSegList.cpp ('k') | Source/core/svg/properties/SVGProperty.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 #include "core/svg/SVGAnimationElement.h" 37 #include "core/svg/SVGAnimationElement.h"
38 #include "core/svg/properties/SVGPropertyHelper.h" 38 #include "core/svg/properties/SVGPropertyHelper.h"
39 #include "wtf/PassRefPtr.h" 39 #include "wtf/PassRefPtr.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 // This is an implementation of the SVG*List property spec: 44 // This is an implementation of the SVG*List property spec:
45 // http://www.w3.org/TR/SVG/single-page.html#types-InterfaceSVGLengthList 45 // http://www.w3.org/TR/SVG/single-page.html#types-InterfaceSVGLengthList
46 template<typename Derived, typename ItemProperty> 46 template<typename Derived, typename ItemProperty>
47 class SVGListPropertyHelper : public SVGPropertyHelper<Derived> { 47 class GC_PLUGIN_IGNORE("") SVGListPropertyHelper : public SVGPropertyHelper<Deri ved> {
48 public: 48 public:
49 typedef ItemProperty ItemPropertyType; 49 typedef ItemProperty ItemPropertyType;
50 50
51 SVGListPropertyHelper() 51 SVGListPropertyHelper()
52 { 52 {
53 } 53 }
54 54
55 ~SVGListPropertyHelper() 55 ~SVGListPropertyHelper()
56 { 56 {
57 #if !ENABLE(OILPAN) 57 #if !ENABLE(OILPAN)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 void clear(); 147 void clear();
148 148
149 PassRefPtrWillBeRawPtr<ItemPropertyType> initialize(PassRefPtrWillBeRawPtr<I temPropertyType>); 149 PassRefPtrWillBeRawPtr<ItemPropertyType> initialize(PassRefPtrWillBeRawPtr<I temPropertyType>);
150 PassRefPtrWillBeRawPtr<ItemPropertyType> getItem(size_t, ExceptionState&); 150 PassRefPtrWillBeRawPtr<ItemPropertyType> getItem(size_t, ExceptionState&);
151 PassRefPtrWillBeRawPtr<ItemPropertyType> insertItemBefore(PassRefPtrWillBeRa wPtr<ItemPropertyType>, size_t); 151 PassRefPtrWillBeRawPtr<ItemPropertyType> insertItemBefore(PassRefPtrWillBeRa wPtr<ItemPropertyType>, size_t);
152 PassRefPtrWillBeRawPtr<ItemPropertyType> removeItem(size_t, ExceptionState&) ; 152 PassRefPtrWillBeRawPtr<ItemPropertyType> removeItem(size_t, ExceptionState&) ;
153 PassRefPtrWillBeRawPtr<ItemPropertyType> appendItem(PassRefPtrWillBeRawPtr<I temPropertyType>); 153 PassRefPtrWillBeRawPtr<ItemPropertyType> appendItem(PassRefPtrWillBeRawPtr<I temPropertyType>);
154 PassRefPtrWillBeRawPtr<ItemPropertyType> replaceItem(PassRefPtrWillBeRawPtr< ItemPropertyType>, size_t, ExceptionState&); 154 PassRefPtrWillBeRawPtr<ItemPropertyType> replaceItem(PassRefPtrWillBeRawPtr< ItemPropertyType>, size_t, ExceptionState&);
155 155
156 virtual void trace(Visitor* visitor) override 156 DEFINE_INLINE_TRACE(,override)
157 { 157 {
158 visitor->trace(m_values); 158 visitor->trace(m_values);
159 SVGPropertyHelper<Derived>::trace(visitor); 159 SVGPropertyHelper<Derived>::trace(visitor);
160 } 160 }
161 161
162 protected: 162 protected:
163 void deepCopy(PassRefPtrWillBeRawPtr<Derived>); 163 void deepCopy(PassRefPtrWillBeRawPtr<Derived>);
164 164
165 bool adjustFromToListValues(PassRefPtrWillBeRawPtr<Derived> fromList, PassRe fPtrWillBeRawPtr<Derived> toList, float percentage, AnimationMode); 165 bool adjustFromToListValues(PassRefPtrWillBeRawPtr<Derived> fromList, PassRe fPtrWillBeRawPtr<Derived> toList, float percentage, AnimationMode);
166 166
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 for (size_t i = 0; i < paddingCount; ++i) 418 for (size_t i = 0; i < paddingCount; ++i)
419 append(createPaddingItem()); 419 append(createPaddingItem());
420 } 420 }
421 421
422 return true; 422 return true;
423 } 423 }
424 424
425 } 425 }
426 426
427 #endif // SVGListPropertyHelper_h 427 #endif // SVGListPropertyHelper_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegList.cpp ('k') | Source/core/svg/properties/SVGProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698