| OLD | NEW |
| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 ASSERT(!isNull(currentIteration)); | 248 ASSERT(!isNull(currentIteration)); |
| 249 maybeDispatch(Document::ANIMATIONITERATION_LISTENER, eventNames().webkit
AnimationIterationEvent, elapsedTime); | 249 maybeDispatch(Document::ANIMATIONITERATION_LISTENER, eventNames().webkit
AnimationIterationEvent, elapsedTime); |
| 250 return; | 250 return; |
| 251 } | 251 } |
| 252 if ((isFirstSample || previousPhase == TimedItem::PhaseBefore) && isLaterPha
se(currentPhase, TimedItem::PhaseBefore)) | 252 if ((isFirstSample || previousPhase == TimedItem::PhaseBefore) && isLaterPha
se(currentPhase, TimedItem::PhaseBefore)) |
| 253 maybeDispatch(Document::ANIMATIONSTART_LISTENER, eventNames().webkitAnim
ationStartEvent, elapsedTime); | 253 maybeDispatch(Document::ANIMATIONSTART_LISTENER, eventNames().webkitAnim
ationStartEvent, elapsedTime); |
| 254 if ((isFirstSample || isEarlierPhase(previousPhase, TimedItem::PhaseAfter))
&& currentPhase == TimedItem::PhaseAfter) | 254 if ((isFirstSample || isEarlierPhase(previousPhase, TimedItem::PhaseAfter))
&& currentPhase == TimedItem::PhaseAfter) |
| 255 maybeDispatch(Document::ANIMATIONEND_LISTENER, eventNames().webkitAnimat
ionEndEvent, elapsedTime); | 255 maybeDispatch(Document::ANIMATIONEND_LISTENER, eventNames().webkitAnimat
ionEndEvent, elapsedTime); |
| 256 } | 256 } |
| 257 | 257 |
| 258 bool CSSAnimations::isAnimatableProperty(CSSPropertyID property) |
| 259 { |
| 260 switch (property) { |
| 261 case CSSPropertyBackgroundColor: |
| 262 case CSSPropertyBackgroundImage: |
| 263 case CSSPropertyBackgroundPositionX: |
| 264 case CSSPropertyBackgroundPositionY: |
| 265 case CSSPropertyBackgroundSize: |
| 266 case CSSPropertyBaselineShift: |
| 267 case CSSPropertyBorderBottomColor: |
| 268 case CSSPropertyBorderBottomLeftRadius: |
| 269 case CSSPropertyBorderBottomRightRadius: |
| 270 case CSSPropertyBorderBottomWidth: |
| 271 case CSSPropertyBorderImageOutset: |
| 272 case CSSPropertyBorderImageSlice: |
| 273 case CSSPropertyBorderImageSource: |
| 274 case CSSPropertyBorderImageWidth: |
| 275 case CSSPropertyBorderLeftColor: |
| 276 case CSSPropertyBorderLeftWidth: |
| 277 case CSSPropertyBorderRightColor: |
| 278 case CSSPropertyBorderRightWidth: |
| 279 case CSSPropertyBorderTopColor: |
| 280 case CSSPropertyBorderTopLeftRadius: |
| 281 case CSSPropertyBorderTopRightRadius: |
| 282 case CSSPropertyBorderTopWidth: |
| 283 case CSSPropertyBottom: |
| 284 case CSSPropertyBoxShadow: |
| 285 case CSSPropertyClip: |
| 286 case CSSPropertyColor: |
| 287 case CSSPropertyFill: |
| 288 case CSSPropertyFillOpacity: |
| 289 case CSSPropertyFlex: |
| 290 case CSSPropertyFloodColor: |
| 291 case CSSPropertyFloodOpacity: |
| 292 case CSSPropertyFontSize: |
| 293 case CSSPropertyHeight: |
| 294 case CSSPropertyKerning: |
| 295 case CSSPropertyLeft: |
| 296 case CSSPropertyLetterSpacing: |
| 297 case CSSPropertyLightingColor: |
| 298 case CSSPropertyLineHeight: |
| 299 case CSSPropertyListStyleImage: |
| 300 case CSSPropertyMarginBottom: |
| 301 case CSSPropertyMarginLeft: |
| 302 case CSSPropertyMarginRight: |
| 303 case CSSPropertyMarginTop: |
| 304 case CSSPropertyMaxHeight: |
| 305 case CSSPropertyMaxWidth: |
| 306 case CSSPropertyMinHeight: |
| 307 case CSSPropertyMinWidth: |
| 308 case CSSPropertyOpacity: |
| 309 case CSSPropertyOrphans: |
| 310 case CSSPropertyOutlineColor: |
| 311 case CSSPropertyOutlineOffset: |
| 312 case CSSPropertyOutlineWidth: |
| 313 case CSSPropertyPaddingBottom: |
| 314 case CSSPropertyPaddingLeft: |
| 315 case CSSPropertyPaddingRight: |
| 316 case CSSPropertyPaddingTop: |
| 317 case CSSPropertyRight: |
| 318 case CSSPropertyStopColor: |
| 319 case CSSPropertyStopOpacity: |
| 320 case CSSPropertyStroke: |
| 321 case CSSPropertyStrokeDasharray: |
| 322 case CSSPropertyStrokeDashoffset: |
| 323 case CSSPropertyStrokeMiterlimit: |
| 324 case CSSPropertyStrokeOpacity: |
| 325 case CSSPropertyStrokeWidth: |
| 326 case CSSPropertyTextIndent: |
| 327 case CSSPropertyTextShadow: |
| 328 case CSSPropertyTop: |
| 329 case CSSPropertyVisibility: |
| 330 case CSSPropertyWebkitBackgroundSize: |
| 331 case CSSPropertyWebkitBorderHorizontalSpacing: |
| 332 case CSSPropertyWebkitBorderVerticalSpacing: |
| 333 case CSSPropertyWebkitBoxShadow: |
| 334 case CSSPropertyWebkitClipPath: |
| 335 case CSSPropertyWebkitColumnCount: |
| 336 case CSSPropertyWebkitColumnGap: |
| 337 case CSSPropertyWebkitColumnRuleColor: |
| 338 case CSSPropertyWebkitColumnRuleWidth: |
| 339 case CSSPropertyWebkitColumnWidth: |
| 340 case CSSPropertyWebkitFilter: |
| 341 case CSSPropertyWebkitMaskBoxImage: |
| 342 case CSSPropertyWebkitMaskBoxImageSource: |
| 343 case CSSPropertyWebkitMaskImage: |
| 344 case CSSPropertyWebkitMaskPositionX: |
| 345 case CSSPropertyWebkitMaskPositionY: |
| 346 case CSSPropertyWebkitMaskSize: |
| 347 case CSSPropertyWebkitPerspective: |
| 348 case CSSPropertyWebkitPerspectiveOriginX: |
| 349 case CSSPropertyWebkitPerspectiveOriginY: |
| 350 case CSSPropertyWebkitShapeInside: |
| 351 case CSSPropertyWebkitTextFillColor: |
| 352 case CSSPropertyWebkitTextStrokeColor: |
| 353 case CSSPropertyWebkitTransform: |
| 354 case CSSPropertyWebkitTransformOriginX: |
| 355 case CSSPropertyWebkitTransformOriginY: |
| 356 case CSSPropertyWebkitTransformOriginZ: |
| 357 case CSSPropertyWidows: |
| 358 case CSSPropertyWidth: |
| 359 case CSSPropertyWordSpacing: |
| 360 case CSSPropertyZIndex: |
| 361 case CSSPropertyZoom: |
| 362 return true; |
| 363 default: |
| 364 return false; |
| 365 } |
| 366 } |
| 367 |
| 258 } // namespace WebCore | 368 } // namespace WebCore |
| OLD | NEW |