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

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

Issue 180113007: [SVG] refactor determineAnimatedPropertyType logic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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/SVGAnimationElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual bool isGradientStop() const { return false; } 90 virtual bool isGradientStop() const { return false; }
91 virtual bool isTextContent() const { return false; } 91 virtual bool isTextContent() const { return false; }
92 virtual bool isTextPositioning() const { return false; } 92 virtual bool isTextPositioning() const { return false; }
93 virtual bool isStructurallyExternal() const { return false; } 93 virtual bool isStructurallyExternal() const { return false; }
94 94
95 // For SVGTests 95 // For SVGTests
96 virtual bool isValid() const { return true; } 96 virtual bool isValid() const { return true; }
97 97
98 virtual void svgAttributeChanged(const QualifiedName&); 98 virtual void svgAttributeChanged(const QualifiedName&);
99 99
100 void animatedPropertyTypeForAttribute(const QualifiedName&, Vector<AnimatedP ropertyType>&);
101 PassRefPtr<NewSVGAnimatedPropertyBase> propertyFromAttribute(const Qualified Name& attributeName); 100 PassRefPtr<NewSVGAnimatedPropertyBase> propertyFromAttribute(const Qualified Name& attributeName);
101 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif iedName& attributeName);
102 102
103 void sendSVGLoadEventIfPossible(bool sendParentLoadEvents = false); 103 void sendSVGLoadEventIfPossible(bool sendParentLoadEvents = false);
104 void sendSVGLoadEventIfPossibleAsynchronously(); 104 void sendSVGLoadEventIfPossibleAsynchronously();
105 void svgLoadEventTimerFired(Timer<SVGElement>*); 105 void svgLoadEventTimerFired(Timer<SVGElement>*);
106 virtual Timer<SVGElement>* svgLoadEventTimer(); 106 virtual Timer<SVGElement>* svgLoadEventTimer();
107 107
108 virtual AffineTransform* supplementalTransform() { return 0; } 108 virtual AffineTransform* supplementalTransform() { return 0; }
109 109
110 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; } 110 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; }
111 111
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 return DefaultHash<QualifiedName>::Hash::hash(key); 231 return DefaultHash<QualifiedName>::Hash::hash(key);
232 } 232 }
233 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a .matches(b); } 233 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a .matches(b); }
234 }; 234 };
235 235
236 DEFINE_NODE_TYPE_CASTS(SVGElement, isSVGElement()); 236 DEFINE_NODE_TYPE_CASTS(SVGElement, isSVGElement());
237 237
238 } 238 }
239 239
240 #endif 240 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimationElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698