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

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

Issue 1991513003: Lock animated property type of result animation during processing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock-animated-property-in
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 static SMILTime parseOffsetValue(const String&); 103 static SMILTime parseOffsetValue(const String&);
104 104
105 bool isContributing(SMILTime elapsed) const; 105 bool isContributing(SMILTime elapsed) const;
106 bool isFrozen() const; 106 bool isFrozen() const;
107 107
108 unsigned documentOrderIndex() const { return m_documentOrderIndex; } 108 unsigned documentOrderIndex() const { return m_documentOrderIndex; }
109 void setDocumentOrderIndex(unsigned index) { m_documentOrderIndex = index; } 109 void setDocumentOrderIndex(unsigned index) { m_documentOrderIndex = index; }
110 110
111 virtual void resetAnimatedType() = 0; 111 virtual void resetAnimatedType() = 0;
112 virtual void clearAnimatedType() = 0; 112 virtual void clearAnimatedType() = 0;
113 virtual void lockAnimatedType() = 0;
fs 2016/05/18 16:10:40 Any particular reason we want these to be virtual?
davve 2016/05/19 06:38:49 It was an attempt at limiting intrusiveness and ke
114 virtual void unlockAnimatedType() = 0;
113 virtual void applyResultsToTarget() = 0; 115 virtual void applyResultsToTarget() = 0;
114 116
115 void connectSyncBaseConditions(); 117 void connectSyncBaseConditions();
116 void connectEventBaseConditions(); 118 void connectEventBaseConditions();
117 119
118 void dispatchPendingEvent(SMILEventSender*); 120 void dispatchPendingEvent(SMILEventSender*);
119 void dispatchRepeatEvents(unsigned); 121 void dispatchRepeatEvents(unsigned);
120 122
121 virtual bool isSVGDiscardElement() const { return false; } 123 virtual bool isSVGDiscardElement() const { return false; }
122 124
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 { 286 {
285 return element.hasTagName(SVGNames::setTag) || element.hasTagName(SVGNames:: animateTag) || element.hasTagName(SVGNames::animateMotionTag) 287 return element.hasTagName(SVGNames::setTag) || element.hasTagName(SVGNames:: animateTag) || element.hasTagName(SVGNames::animateMotionTag)
286 || element.hasTagName(SVGNames::animateTransformTag) || element.hasTagNa me((SVGNames::discardTag)); 288 || element.hasTagName(SVGNames::animateTransformTag) || element.hasTagNa me((SVGNames::discardTag));
287 } 289 }
288 290
289 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 291 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
290 292
291 } // namespace blink 293 } // namespace blink
292 294
293 #endif // SVGSMILElement_h 295 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698