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

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

Issue 19096011: Get rid of SVGRect special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGAnimatedType.h ('k') | Source/core/svg/SVGGraphicsElement.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) Research In Motion Limited 2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011. 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 197
198 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createPreserveAspectRatio(SVGPreser veAspectRatio* preserveAspectRatio) 198 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createPreserveAspectRatio(SVGPreser veAspectRatio* preserveAspectRatio)
199 { 199 {
200 ASSERT(preserveAspectRatio); 200 ASSERT(preserveAspectRatio);
201 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated PreserveAspectRatio)); 201 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated PreserveAspectRatio));
202 animatedType->m_data.preserveAspectRatio = preserveAspectRatio; 202 animatedType->m_data.preserveAspectRatio = preserveAspectRatio;
203 return animatedType.release(); 203 return animatedType.release();
204 } 204 }
205 205
206 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createRect(FloatRect* rect) 206 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createRect(SVGRect* rect)
207 { 207 {
208 ASSERT(rect); 208 ASSERT(rect);
209 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated Rect)); 209 OwnPtr<SVGAnimatedType> animatedType = adoptPtr(new SVGAnimatedType(Animated Rect));
210 animatedType->m_data.rect = rect; 210 animatedType->m_data.rect = rect;
211 return animatedType.release(); 211 return animatedType.release();
212 } 212 }
213 213
214 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createString(String* string) 214 PassOwnPtr<SVGAnimatedType> SVGAnimatedType::createString(String* string)
215 { 215 {
216 ASSERT(string); 216 ASSERT(string);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 return true; 321 return true;
322 } 322 }
323 323
324 bool SVGAnimatedType::supportsAnimVal(AnimatedPropertyType type) 324 bool SVGAnimatedType::supportsAnimVal(AnimatedPropertyType type)
325 { 325 {
326 // AnimatedColor is only used for CSS property animations. 326 // AnimatedColor is only used for CSS property animations.
327 return type != AnimatedUnknown && type != AnimatedColor; 327 return type != AnimatedUnknown && type != AnimatedColor;
328 } 328 }
329 329
330 } // namespace WebCore 330 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedType.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698