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

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

Issue 212543003: CSS Transforms: Implement transform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 8 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 case CSSPropertyWebkitPerspectiveOriginY: 464 case CSSPropertyWebkitPerspectiveOriginY:
465 return createFromLength(style.perspectiveOriginY(), style); 465 return createFromLength(style.perspectiveOriginY(), style);
466 case CSSPropertyShapeOutside: 466 case CSSPropertyShapeOutside:
467 return createFromShapeValue(style.shapeOutside()); 467 return createFromShapeValue(style.shapeOutside());
468 case CSSPropertyShapeMargin: 468 case CSSPropertyShapeMargin:
469 return createFromLength(style.shapeMargin(), style); 469 return createFromLength(style.shapeMargin(), style);
470 case CSSPropertyShapeImageThreshold: 470 case CSSPropertyShapeImageThreshold:
471 return createFromDouble(style.shapeImageThreshold()); 471 return createFromDouble(style.shapeImageThreshold());
472 case CSSPropertyWebkitTextStrokeColor: 472 case CSSPropertyWebkitTextStrokeColor:
473 return createFromColor(property, style); 473 return createFromColor(property, style);
474 case CSSPropertyWebkitTransform: 474 case CSSPropertyTransform:
475 return AnimatableTransform::create(style.transform()); 475 return AnimatableTransform::create(style.transform());
476 case CSSPropertyWebkitTransformOriginX: 476 case CSSPropertyWebkitTransformOriginX:
477 return createFromLength(style.transformOriginX(), style); 477 return createFromLength(style.transformOriginX(), style);
478 case CSSPropertyWebkitTransformOriginY: 478 case CSSPropertyWebkitTransformOriginY:
479 return createFromLength(style.transformOriginY(), style); 479 return createFromLength(style.transformOriginY(), style);
480 case CSSPropertyWebkitTransformOriginZ: 480 case CSSPropertyWebkitTransformOriginZ:
481 return createFromDouble(style.transformOriginZ()); 481 return createFromDouble(style.transformOriginZ());
482 case CSSPropertyWidows: 482 case CSSPropertyWidows:
483 return createFromDouble(style.widows()); 483 return createFromDouble(style.widows());
484 case CSSPropertyWidth: 484 case CSSPropertyWidth:
485 return createFromLength(style.width(), style); 485 return createFromLength(style.width(), style);
486 case CSSPropertyWordSpacing: 486 case CSSPropertyWordSpacing:
487 return createFromDouble(style.wordSpacing()); 487 return createFromDouble(style.wordSpacing());
488 case CSSPropertyVisibility: 488 case CSSPropertyVisibility:
489 return AnimatableVisibility::create(style.visibility()); 489 return AnimatableVisibility::create(style.visibility());
490 case CSSPropertyZIndex: 490 case CSSPropertyZIndex:
491 return createFromDouble(style.zIndex()); 491 return createFromDouble(style.zIndex());
492 case CSSPropertyZoom: 492 case CSSPropertyZoom:
493 return createFromDouble(style.zoom()); 493 return createFromDouble(style.zoom());
494 default: 494 default:
495 ASSERT_NOT_REACHED(); 495 ASSERT_NOT_REACHED();
496 // This return value is to avoid a release crash if possible. 496 // This return value is to avoid a release crash if possible.
497 return AnimatableUnknown::create(nullptr); 497 return AnimatableUnknown::create(nullptr);
498 } 498 }
499 } 499 }
500 500
501 } // namespace WebCore 501 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/animation/CompositorAnimationsTest.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698