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

Side by Side Diff: Source/core/svg/animation/SVGSMILElement.h

Issue 21498002: Introduce a SVGUnknownElement class for unknown SVG elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment for SVGUnknownElement Created 7 years, 4 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/SVGUnknownElement.cpp ('k') | Source/core/svg/svgtags.in » ('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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual void setAttributeName(const QualifiedName&); 120 virtual void setAttributeName(const QualifiedName&);
121 121
122 private: 122 private:
123 void buildPendingResource(); 123 void buildPendingResource();
124 void clearResourceReferences(); 124 void clearResourceReferences();
125 125
126 virtual void startedActiveInterval() = 0; 126 virtual void startedActiveInterval() = 0;
127 void endedActiveInterval(); 127 void endedActiveInterval();
128 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0; 128 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0;
129 129
130 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return false; }
131
130 enum BeginOrEnd { 132 enum BeginOrEnd {
131 Begin, 133 Begin,
132 End 134 End
133 }; 135 };
134 136
135 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const; 137 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const;
136 void resolveFirstInterval(); 138 void resolveFirstInterval();
137 void resolveNextInterval(bool notifyDependents); 139 void resolveNextInterval(bool notifyDependents);
138 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const; 140 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const;
139 SMILTime resolveActiveEnd(SMILTime resolvedBegin, SMILTime resolvedEnd) cons t; 141 SMILTime resolveActiveEnd(SMILTime resolvedBegin, SMILTime resolvedEnd) cons t;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 237
236 inline SVGSMILElement* toSVGSMILElement(Element* element) 238 inline SVGSMILElement* toSVGSMILElement(Element* element)
237 { 239 {
238 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e lement)); 240 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e lement));
239 return static_cast<SVGSMILElement*>(element); 241 return static_cast<SVGSMILElement*>(element);
240 } 242 }
241 243
242 } 244 }
243 245
244 #endif // SVGSMILElement_h 246 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGUnknownElement.cpp ('k') | Source/core/svg/svgtags.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698