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

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

Issue 136313002: Revert of [SVG] Implement 'discard' element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | no next file » | 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual void resetAnimatedType() = 0; 108 virtual void resetAnimatedType() = 0;
109 virtual void clearAnimatedType(SVGElement* targetElement) = 0; 109 virtual void clearAnimatedType(SVGElement* targetElement) = 0;
110 virtual void applyResultsToTarget() = 0; 110 virtual void applyResultsToTarget() = 0;
111 111
112 void connectSyncBaseConditions(); 112 void connectSyncBaseConditions();
113 void connectEventBaseConditions(); 113 void connectEventBaseConditions();
114 114
115 void dispatchPendingEvent(SMILEventSender*); 115 void dispatchPendingEvent(SMILEventSender*);
116 void dispatchRepeatEvents(unsigned); 116 void dispatchRepeatEvents(unsigned);
117 117
118 virtual bool isSVGDiscardElement() const { return false; }
119
120 protected: 118 protected:
121 void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin:: Origin = SMILTimeWithOrigin::ParserOrigin); 119 void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin:: Origin = SMILTimeWithOrigin::ParserOrigin);
122 void addEndTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Or igin = SMILTimeWithOrigin::ParserOrigin); 120 void addEndTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Or igin = SMILTimeWithOrigin::ParserOrigin);
123 121
124 void setInactive() { m_activeState = Inactive; } 122 void setInactive() { m_activeState = Inactive; }
125 123
126 // Sub-classes may need to take action when the target is changed. 124 // Sub-classes may need to take action when the target is changed.
127 virtual void setTargetElement(SVGElement*); 125 virtual void setTargetElement(SVGElement*);
128 virtual void setAttributeName(const QualifiedName&); 126 virtual void setAttributeName(const QualifiedName&);
129 127
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 mutable SMILTime m_cachedRepeatCount; 233 mutable SMILTime m_cachedRepeatCount;
236 mutable SMILTime m_cachedMin; 234 mutable SMILTime m_cachedMin;
237 mutable SMILTime m_cachedMax; 235 mutable SMILTime m_cachedMax;
238 236
239 friend class ConditionEventListener; 237 friend class ConditionEventListener;
240 }; 238 };
241 239
242 inline bool isSVGSMILElement(const Node& node) 240 inline bool isSVGSMILElement(const Node& node)
243 { 241 {
244 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag) 242 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag)
245 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName(SVG Names::animateColorTag) || node.hasTagName((SVGNames::discardTag)); 243 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName(SVG Names::animateColorTag);
246 } 244 }
247 245
248 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 246 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
249 247
250 } 248 }
251 249
252 #endif // SVGSMILElement_h 250 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698