| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 ASSERT(timedItem->specified().startDelay > 0 || isFirstSample); | 268 ASSERT(timedItem->specified().startDelay > 0 || isFirstSample); |
| 269 // The spec states that the elapsed time should be | 269 // The spec states that the elapsed time should be |
| 270 // 'delay < 0 ? -delay : 0', but we always use 0 to match the existing | 270 // 'delay < 0 ? -delay : 0', but we always use 0 to match the existing |
| 271 // implementation. See crbug.com/279611 | 271 // implementation. See crbug.com/279611 |
| 272 maybeDispatch(Document::ANIMATIONSTART_LISTENER, eventNames().animations
tartEvent, 0); | 272 maybeDispatch(Document::ANIMATIONSTART_LISTENER, eventNames().animations
tartEvent, 0); |
| 273 } | 273 } |
| 274 if ((isFirstSample || isEarlierPhase(previousPhase, TimedItem::PhaseAfter))
&& currentPhase == TimedItem::PhaseAfter) | 274 if ((isFirstSample || isEarlierPhase(previousPhase, TimedItem::PhaseAfter))
&& currentPhase == TimedItem::PhaseAfter) |
| 275 maybeDispatch(Document::ANIMATIONEND_LISTENER, eventNames().animationend
Event, timedItem->activeDuration()); | 275 maybeDispatch(Document::ANIMATIONEND_LISTENER, eventNames().animationend
Event, timedItem->activeDuration()); |
| 276 } | 276 } |
| 277 | 277 |
| 278 bool CSSAnimations::isAnimatableProperty(CSSPropertyID property) |
| 279 { |
| 280 switch (property) { |
| 281 case CSSPropertyBackgroundColor: |
| 282 case CSSPropertyBackgroundImage: |
| 283 case CSSPropertyBackgroundPositionX: |
| 284 case CSSPropertyBackgroundPositionY: |
| 285 case CSSPropertyBackgroundSize: |
| 286 case CSSPropertyBaselineShift: |
| 287 case CSSPropertyBorderBottomColor: |
| 288 case CSSPropertyBorderBottomLeftRadius: |
| 289 case CSSPropertyBorderBottomRightRadius: |
| 290 case CSSPropertyBorderBottomWidth: |
| 291 case CSSPropertyBorderImageOutset: |
| 292 case CSSPropertyBorderImageSlice: |
| 293 case CSSPropertyBorderImageSource: |
| 294 case CSSPropertyBorderImageWidth: |
| 295 case CSSPropertyBorderLeftColor: |
| 296 case CSSPropertyBorderLeftWidth: |
| 297 case CSSPropertyBorderRightColor: |
| 298 case CSSPropertyBorderRightWidth: |
| 299 case CSSPropertyBorderTopColor: |
| 300 case CSSPropertyBorderTopLeftRadius: |
| 301 case CSSPropertyBorderTopRightRadius: |
| 302 case CSSPropertyBorderTopWidth: |
| 303 case CSSPropertyBottom: |
| 304 case CSSPropertyBoxShadow: |
| 305 case CSSPropertyClip: |
| 306 case CSSPropertyColor: |
| 307 case CSSPropertyFill: |
| 308 case CSSPropertyFillOpacity: |
| 309 case CSSPropertyFlex: |
| 310 case CSSPropertyFloodColor: |
| 311 case CSSPropertyFloodOpacity: |
| 312 case CSSPropertyFontSize: |
| 313 case CSSPropertyHeight: |
| 314 case CSSPropertyKerning: |
| 315 case CSSPropertyLeft: |
| 316 case CSSPropertyLetterSpacing: |
| 317 case CSSPropertyLightingColor: |
| 318 case CSSPropertyLineHeight: |
| 319 case CSSPropertyListStyleImage: |
| 320 case CSSPropertyMarginBottom: |
| 321 case CSSPropertyMarginLeft: |
| 322 case CSSPropertyMarginRight: |
| 323 case CSSPropertyMarginTop: |
| 324 case CSSPropertyMaxHeight: |
| 325 case CSSPropertyMaxWidth: |
| 326 case CSSPropertyMinHeight: |
| 327 case CSSPropertyMinWidth: |
| 328 case CSSPropertyOpacity: |
| 329 case CSSPropertyOrphans: |
| 330 case CSSPropertyOutlineColor: |
| 331 case CSSPropertyOutlineOffset: |
| 332 case CSSPropertyOutlineWidth: |
| 333 case CSSPropertyPaddingBottom: |
| 334 case CSSPropertyPaddingLeft: |
| 335 case CSSPropertyPaddingRight: |
| 336 case CSSPropertyPaddingTop: |
| 337 case CSSPropertyRight: |
| 338 case CSSPropertyStopColor: |
| 339 case CSSPropertyStopOpacity: |
| 340 case CSSPropertyStroke: |
| 341 case CSSPropertyStrokeDasharray: |
| 342 case CSSPropertyStrokeDashoffset: |
| 343 case CSSPropertyStrokeMiterlimit: |
| 344 case CSSPropertyStrokeOpacity: |
| 345 case CSSPropertyStrokeWidth: |
| 346 case CSSPropertyTextIndent: |
| 347 case CSSPropertyTextShadow: |
| 348 case CSSPropertyTop: |
| 349 case CSSPropertyVisibility: |
| 350 case CSSPropertyWebkitBackgroundSize: |
| 351 case CSSPropertyWebkitBorderHorizontalSpacing: |
| 352 case CSSPropertyWebkitBorderVerticalSpacing: |
| 353 case CSSPropertyWebkitBoxShadow: |
| 354 case CSSPropertyWebkitClipPath: |
| 355 case CSSPropertyWebkitColumnCount: |
| 356 case CSSPropertyWebkitColumnGap: |
| 357 case CSSPropertyWebkitColumnRuleColor: |
| 358 case CSSPropertyWebkitColumnRuleWidth: |
| 359 case CSSPropertyWebkitColumnWidth: |
| 360 case CSSPropertyWebkitFilter: |
| 361 case CSSPropertyWebkitMaskBoxImage: |
| 362 case CSSPropertyWebkitMaskBoxImageSource: |
| 363 case CSSPropertyWebkitMaskImage: |
| 364 case CSSPropertyWebkitMaskPositionX: |
| 365 case CSSPropertyWebkitMaskPositionY: |
| 366 case CSSPropertyWebkitMaskSize: |
| 367 case CSSPropertyWebkitPerspective: |
| 368 case CSSPropertyWebkitPerspectiveOriginX: |
| 369 case CSSPropertyWebkitPerspectiveOriginY: |
| 370 case CSSPropertyWebkitShapeInside: |
| 371 case CSSPropertyWebkitTextFillColor: |
| 372 case CSSPropertyWebkitTextStrokeColor: |
| 373 case CSSPropertyWebkitTransform: |
| 374 case CSSPropertyWebkitTransformOriginX: |
| 375 case CSSPropertyWebkitTransformOriginY: |
| 376 case CSSPropertyWebkitTransformOriginZ: |
| 377 case CSSPropertyWidows: |
| 378 case CSSPropertyWidth: |
| 379 case CSSPropertyWordSpacing: |
| 380 case CSSPropertyZIndex: |
| 381 case CSSPropertyZoom: |
| 382 return true; |
| 383 default: |
| 384 return false; |
| 385 } |
| 386 } |
| 387 |
| 278 } // namespace WebCore | 388 } // namespace WebCore |
| OLD | NEW |