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

Side by Side Diff: Source/core/animation/css/CSSAnimations.cpp

Issue 22799020: Web Animations CSS: Support Animation of StyleImage and LengthBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Support animation of clip:' 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 if (wasInPlay && isInPlay && currentIteration != previousIteration) { 230 if (wasInPlay && isInPlay && currentIteration != previousIteration) {
231 maybeDispatch(Document::ANIMATIONITERATION_LISTENER, eventNames().webkit AnimationIterationEvent, elapsedTime); 231 maybeDispatch(Document::ANIMATIONITERATION_LISTENER, eventNames().webkit AnimationIterationEvent, elapsedTime);
232 return; 232 return;
233 } 233 }
234 if (wasInPlay && !isInPlay) { 234 if (wasInPlay && !isInPlay) {
235 maybeDispatch(Document::ANIMATIONEND_LISTENER, eventNames().webkitAnimat ionEndEvent, elapsedTime); 235 maybeDispatch(Document::ANIMATIONEND_LISTENER, eventNames().webkitAnimat ionEndEvent, elapsedTime);
236 return; 236 return;
237 } 237 }
238 } 238 }
239 239
240 bool CSSAnimations::isAnimatableProperty(CSSPropertyID property)
241 {
242 switch (property) {
243 case CSSPropertyBackgroundColor:
244 case CSSPropertyBackgroundImage:
245 case CSSPropertyBackgroundPositionX:
246 case CSSPropertyBackgroundPositionY:
247 case CSSPropertyBackgroundSize:
248 case CSSPropertyBaselineShift:
249 case CSSPropertyBorderBottomColor:
250 case CSSPropertyBorderBottomLeftRadius:
251 case CSSPropertyBorderBottomRightRadius:
252 case CSSPropertyBorderBottomWidth:
253 case CSSPropertyBorderImageOutset:
254 case CSSPropertyBorderImageSlice:
255 case CSSPropertyBorderImageSource:
256 case CSSPropertyBorderImageWidth:
257 case CSSPropertyBorderLeftColor:
258 case CSSPropertyBorderLeftWidth:
259 case CSSPropertyBorderRightColor:
260 case CSSPropertyBorderRightWidth:
261 case CSSPropertyBorderTopColor:
262 case CSSPropertyBorderTopLeftRadius:
263 case CSSPropertyBorderTopRightRadius:
264 case CSSPropertyBorderTopWidth:
265 case CSSPropertyBottom:
266 case CSSPropertyBoxShadow:
267 case CSSPropertyClip:
268 case CSSPropertyColor:
269 case CSSPropertyFill:
270 case CSSPropertyFillOpacity:
271 case CSSPropertyFlex:
272 case CSSPropertyFloodColor:
273 case CSSPropertyFloodOpacity:
274 case CSSPropertyFontSize:
275 case CSSPropertyHeight:
276 case CSSPropertyKerning:
277 case CSSPropertyLeft:
278 case CSSPropertyLetterSpacing:
279 case CSSPropertyLightingColor:
280 case CSSPropertyLineHeight:
281 case CSSPropertyListStyleImage:
282 case CSSPropertyMarginBottom:
283 case CSSPropertyMarginLeft:
284 case CSSPropertyMarginRight:
285 case CSSPropertyMarginTop:
286 case CSSPropertyMaxHeight:
287 case CSSPropertyMaxWidth:
288 case CSSPropertyMinHeight:
289 case CSSPropertyMinWidth:
290 case CSSPropertyOpacity:
291 case CSSPropertyOrphans:
292 case CSSPropertyOutlineColor:
293 case CSSPropertyOutlineOffset:
294 case CSSPropertyOutlineWidth:
295 case CSSPropertyPaddingBottom:
296 case CSSPropertyPaddingLeft:
297 case CSSPropertyPaddingRight:
298 case CSSPropertyPaddingTop:
299 case CSSPropertyRight:
300 case CSSPropertyStopColor:
301 case CSSPropertyStopOpacity:
302 case CSSPropertyStroke:
303 case CSSPropertyStrokeDasharray:
304 case CSSPropertyStrokeDashoffset:
305 case CSSPropertyStrokeMiterlimit:
306 case CSSPropertyStrokeOpacity:
307 case CSSPropertyStrokeWidth:
308 case CSSPropertyTextIndent:
309 case CSSPropertyTextShadow:
310 case CSSPropertyTop:
311 case CSSPropertyVisibility:
312 case CSSPropertyWebkitBackgroundSize:
313 case CSSPropertyWebkitBorderHorizontalSpacing:
314 case CSSPropertyWebkitBorderVerticalSpacing:
315 case CSSPropertyWebkitBoxShadow:
316 case CSSPropertyWebkitClipPath:
317 case CSSPropertyWebkitColumnCount:
318 case CSSPropertyWebkitColumnGap:
319 case CSSPropertyWebkitColumnRuleColor:
320 case CSSPropertyWebkitColumnRuleWidth:
321 case CSSPropertyWebkitColumnWidth:
322 case CSSPropertyWebkitFilter:
323 case CSSPropertyWebkitMaskBoxImage:
324 case CSSPropertyWebkitMaskBoxImageSource:
325 case CSSPropertyWebkitMaskImage:
326 case CSSPropertyWebkitMaskPositionX:
327 case CSSPropertyWebkitMaskPositionY:
328 case CSSPropertyWebkitMaskSize:
329 case CSSPropertyWebkitPerspective:
330 case CSSPropertyWebkitPerspectiveOriginX:
331 case CSSPropertyWebkitPerspectiveOriginY:
332 case CSSPropertyWebkitShapeInside:
333 case CSSPropertyWebkitTextFillColor:
334 case CSSPropertyWebkitTextStrokeColor:
335 case CSSPropertyWebkitTransform:
336 case CSSPropertyWebkitTransformOriginX:
337 case CSSPropertyWebkitTransformOriginY:
338 case CSSPropertyWebkitTransformOriginZ:
339 case CSSPropertyWidows:
340 case CSSPropertyWidth:
341 case CSSPropertyWordSpacing:
342 case CSSPropertyZIndex:
343 case CSSPropertyZoom:
344 return true;
345 default:
346 return false;
347 }
348 }
349
240 } // namespace WebCore 350 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698