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

Side by Side Diff: Source/core/svg/SVGTransform.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGTransform.h ('k') | Source/core/svg/SVGTransform.idl » ('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) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 , m_angle(angle) 58 , m_angle(angle)
59 , m_center(center) 59 , m_center(center)
60 , m_matrix(matrix) 60 , m_matrix(matrix)
61 { 61 {
62 } 62 }
63 63
64 SVGTransform::~SVGTransform() 64 SVGTransform::~SVGTransform()
65 { 65 {
66 } 66 }
67 67
68 PassRefPtr<SVGTransform> SVGTransform::clone() const 68 PassRefPtrWillBeRawPtr<SVGTransform> SVGTransform::clone() const
69 { 69 {
70 return adoptRef(new SVGTransform(m_transformType, m_angle, m_center, m_matri x)); 70 return adoptRefWillBeNoop(new SVGTransform(m_transformType, m_angle, m_cente r, m_matrix));
71 } 71 }
72 72
73 PassRefPtr<SVGPropertyBase> SVGTransform::cloneForAnimation(const String&) const 73 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGTransform::cloneForAnimation(const St ring&) const
74 { 74 {
75 // SVGTransform is never animated. 75 // SVGTransform is never animated.
76 ASSERT_NOT_REACHED(); 76 ASSERT_NOT_REACHED();
77 return nullptr; 77 return nullptr;
78 } 78 }
79 79
80 void SVGTransform::setMatrix(const AffineTransform& matrix) 80 void SVGTransform::setMatrix(const AffineTransform& matrix)
81 { 81 {
82 onMatrixChange(); 82 onMatrixChange();
83 m_matrix = matrix; 83 m_matrix = matrix;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 ASSERT_NOT_REACHED(); 223 ASSERT_NOT_REACHED();
224 return emptyString(); 224 return emptyString();
225 } 225 }
226 226
227 void SVGTransform::add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) 227 void SVGTransform::add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*)
228 { 228 {
229 // SVGTransform is not animated by itself. 229 // SVGTransform is not animated by itself.
230 ASSERT_NOT_REACHED(); 230 ASSERT_NOT_REACHED();
231 } 231 }
232 232
233 void SVGTransform::calculateAnimatedValue(SVGAnimationElement*, float, unsigned, PassRefPtr<SVGPropertyBase>, PassRefPtr<SVGPropertyBase>, PassRefPtr<SVGPropert yBase>, SVGElement*) 233 void SVGTransform::calculateAnimatedValue(SVGAnimationElement*, float, unsigned, PassRefPtrWillBeRawPtr<SVGPropertyBase>, PassRefPtrWillBeRawPtr<SVGPropertyBase >, PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*)
234 { 234 {
235 // SVGTransform is not animated by itself. 235 // SVGTransform is not animated by itself.
236 ASSERT_NOT_REACHED(); 236 ASSERT_NOT_REACHED();
237 } 237 }
238 238
239 float SVGTransform::calculateDistance(PassRefPtr<SVGPropertyBase>, SVGElement*) 239 float SVGTransform::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase>, S VGElement*)
240 { 240 {
241 // SVGTransform is not animated by itself. 241 // SVGTransform is not animated by itself.
242 ASSERT_NOT_REACHED(); 242 ASSERT_NOT_REACHED();
243 243
244 return -1; 244 return -1;
245 } 245 }
246 246
247 } // namespace blink 247 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTransform.h ('k') | Source/core/svg/SVGTransform.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698