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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 2555543002: CSS Motion Path: Support offset-rotate in addition to offset-rotation (Closed)
Patch Set: reformat Created 4 years 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 return; 755 return;
756 case CSSPropertyOffsetAnchor: 756 case CSSPropertyOffsetAnchor:
757 style->setOffsetAnchor(animatableValueToLengthPoint(value, state)); 757 style->setOffsetAnchor(animatableValueToLengthPoint(value, state));
758 return; 758 return;
759 case CSSPropertyOffsetDistance: 759 case CSSPropertyOffsetDistance:
760 style->setOffsetDistance(animatableValueToLength(value, state)); 760 style->setOffsetDistance(animatableValueToLength(value, state));
761 return; 761 return;
762 case CSSPropertyOffsetPosition: 762 case CSSPropertyOffsetPosition:
763 style->setOffsetPosition(animatableValueToLengthPoint(value, state)); 763 style->setOffsetPosition(animatableValueToLengthPoint(value, state));
764 return; 764 return;
765 case CSSPropertyOffsetRotate:
765 case CSSPropertyOffsetRotation: 766 case CSSPropertyOffsetRotation:
766 style->setOffsetRotation(StyleOffsetRotation( 767 style->setOffsetRotation(StyleOffsetRotation(
767 toAnimatableDoubleAndBool(value)->toDouble(), 768 toAnimatableDoubleAndBool(value)->toDouble(),
768 toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto 769 toAnimatableDoubleAndBool(value)->flag() ? OffsetRotationAuto
769 : OffsetRotationFixed)); 770 : OffsetRotationFixed));
770 return; 771 return;
771 case CSSPropertyWebkitPerspectiveOriginX: 772 case CSSPropertyWebkitPerspectiveOriginX:
772 style->setPerspectiveOriginX(animatableValueToLength(value, state)); 773 style->setPerspectiveOriginX(animatableValueToLength(value, state));
773 return; 774 return;
774 case CSSPropertyWebkitPerspectiveOriginY: 775 case CSSPropertyWebkitPerspectiveOriginY:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 style->setRy( 832 style->setRy(
832 animatableValueToLength(value, state, ValueRangeNonNegative)); 833 animatableValueToLength(value, state, ValueRangeNonNegative));
833 return; 834 return;
834 835
835 default: 836 default:
836 ASSERT_NOT_REACHED(); 837 ASSERT_NOT_REACHED();
837 } 838 }
838 } 839 }
839 840
840 } // namespace blink 841 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698