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

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

Issue 177703004: [SVG] Remove SVGAnimatedPropertyMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove ws Created 6 years, 9 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/SVGElement.h ('k') | Source/core/svg/SVGEllipseElement.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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/svg/SVGElementInstance.h" 44 #include "core/svg/SVGElementInstance.h"
45 #include "core/svg/SVGElementRareData.h" 45 #include "core/svg/SVGElementRareData.h"
46 #include "core/svg/SVGGraphicsElement.h" 46 #include "core/svg/SVGGraphicsElement.h"
47 #include "core/svg/SVGSVGElement.h" 47 #include "core/svg/SVGSVGElement.h"
48 #include "core/svg/SVGUseElement.h" 48 #include "core/svg/SVGUseElement.h"
49 49
50 #include "wtf/TemporaryChange.h" 50 #include "wtf/TemporaryChange.h"
51 51
52 namespace WebCore { 52 namespace WebCore {
53 53
54 // Animated property definitions
55
56 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGElement)
57 END_REGISTER_ANIMATED_PROPERTIES
58
59 using namespace HTMLNames; 54 using namespace HTMLNames;
60 using namespace SVGNames; 55 using namespace SVGNames;
61 56
62 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName ToIdMap, const QualifiedName& attrName) 57 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName ToIdMap, const QualifiedName& attrName)
63 { 58 {
64 // FIXME: when CSS supports "transform-origin" the special case for transfor m_originAttr can be removed. 59 // FIXME: when CSS supports "transform-origin" the special case for transfor m_originAttr can be removed.
65 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); 60 CSSPropertyID propertyId = cssPropertyID(attrName.localName());
66 if (!propertyId && attrName == transform_originAttr) 61 if (!propertyId && attrName == transform_originAttr)
67 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit -transform-origin") 62 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit -transform-origin")
68 ASSERT(propertyId > 0); 63 ASSERT(propertyId > 0);
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 animatableAttributes.add(SVGNames::zAttr); 1148 animatableAttributes.add(SVGNames::zAttr);
1154 } 1149 }
1155 1150
1156 if (name == classAttr) 1151 if (name == classAttr)
1157 return true; 1152 return true;
1158 1153
1159 return animatableAttributes.contains(name); 1154 return animatableAttributes.contains(name);
1160 } 1155 }
1161 #endif 1156 #endif
1162 } 1157 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGEllipseElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698