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

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

Issue 2842933003: CSS Motion Path: delete implementation of offset-rotation property (Closed)
Patch Set: remove offsetRotation from webexposed Created 3 years, 7 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
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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 return CreateFromTransformProperties(style.Scale(), style.EffectiveZoom(), 609 return CreateFromTransformProperties(style.Scale(), style.EffectiveZoom(),
610 nullptr); 610 nullptr);
611 } 611 }
612 case CSSPropertyOffsetAnchor: 612 case CSSPropertyOffsetAnchor:
613 return CreateFromLengthPoint(style.OffsetAnchor(), style); 613 return CreateFromLengthPoint(style.OffsetAnchor(), style);
614 case CSSPropertyOffsetDistance: 614 case CSSPropertyOffsetDistance:
615 return CreateFromLength(style.OffsetDistance(), style); 615 return CreateFromLength(style.OffsetDistance(), style);
616 case CSSPropertyOffsetPosition: 616 case CSSPropertyOffsetPosition:
617 return CreateFromLengthPoint(style.OffsetPosition(), style); 617 return CreateFromLengthPoint(style.OffsetPosition(), style);
618 case CSSPropertyOffsetRotate: 618 case CSSPropertyOffsetRotate:
619 case CSSPropertyOffsetRotation:
620 return CreateFromDoubleAndBool( 619 return CreateFromDoubleAndBool(
621 style.OffsetRotation().angle, 620 style.OffsetRotate().angle,
622 style.OffsetRotation().type == kOffsetRotationAuto, style); 621 style.OffsetRotate().type == kOffsetRotationAuto, style);
623 case CSSPropertyTransformOrigin: 622 case CSSPropertyTransformOrigin:
624 return CreateFromTransformOrigin(style.GetTransformOrigin(), style); 623 return CreateFromTransformOrigin(style.GetTransformOrigin(), style);
625 case CSSPropertyWebkitPerspectiveOriginX: 624 case CSSPropertyWebkitPerspectiveOriginX:
626 return CreateFromLength(style.PerspectiveOriginX(), style); 625 return CreateFromLength(style.PerspectiveOriginX(), style);
627 case CSSPropertyWebkitPerspectiveOriginY: 626 case CSSPropertyWebkitPerspectiveOriginY:
628 return CreateFromLength(style.PerspectiveOriginY(), style); 627 return CreateFromLength(style.PerspectiveOriginY(), style);
629 case CSSPropertyWebkitTransformOriginX: 628 case CSSPropertyWebkitTransformOriginX:
630 return CreateFromLength(style.TransformOriginX(), style); 629 return CreateFromLength(style.TransformOriginX(), style);
631 case CSSPropertyWebkitTransformOriginY: 630 case CSSPropertyWebkitTransformOriginY:
632 return CreateFromLength(style.TransformOriginY(), style); 631 return CreateFromLength(style.TransformOriginY(), style);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 if (style.HasAutoZIndex()) 664 if (style.HasAutoZIndex())
666 return AnimatableUnknown::Create(CSSValueAuto); 665 return AnimatableUnknown::Create(CSSValueAuto);
667 return CreateFromDouble(style.ZIndex()); 666 return CreateFromDouble(style.ZIndex());
668 default: 667 default:
669 NOTREACHED(); 668 NOTREACHED();
670 return nullptr; 669 return nullptr;
671 } 670 }
672 } 671 }
673 672
674 } // namespace blink 673 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698