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

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

Issue 23956012: Stop passing NodeRenderingContext except in textRendererIsNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/SVGViewElement.h ('k') | Source/core/testing/Internals.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) 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void setAttributeName(const QualifiedName&); 129 virtual void setAttributeName(const QualifiedName&);
130 130
131 private: 131 private:
132 void buildPendingResource(); 132 void buildPendingResource();
133 void clearResourceReferences(); 133 void clearResourceReferences();
134 134
135 virtual void startedActiveInterval() = 0; 135 virtual void startedActiveInterval() = 0;
136 void endedActiveInterval(); 136 void endedActiveInterval();
137 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0; 137 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0;
138 138
139 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return false; } 139 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
140 140
141 enum BeginOrEnd { 141 enum BeginOrEnd {
142 Begin, 142 Begin,
143 End 143 End
144 }; 144 };
145 145
146 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const; 146 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const;
147 void resolveFirstInterval(); 147 void resolveFirstInterval();
148 void resolveNextInterval(bool notifyDependents); 148 void resolveNextInterval(bool notifyDependents);
149 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const; 149 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 inline SVGSMILElement* toSVGSMILElement(Element* element) 246 inline SVGSMILElement* toSVGSMILElement(Element* element)
247 { 247 {
248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e lement)); 248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e lement));
249 return static_cast<SVGSMILElement*>(element); 249 return static_cast<SVGSMILElement*>(element);
250 } 250 }
251 251
252 } 252 }
253 253
254 #endif // SVGSMILElement_h 254 #endif // SVGSMILElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGViewElement.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698