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

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

Issue 2692383004: Support animating CSS property "order" (Closed)
Patch Set: orderorder Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 animatableValueToLength(value, state, ValueRangeNonNegative)); 542 animatableValueToLength(value, state, ValueRangeNonNegative));
543 return; 543 return;
544 case CSSPropertyObjectPosition: 544 case CSSPropertyObjectPosition:
545 style->setObjectPosition(animatableValueToLengthPoint(value, state)); 545 style->setObjectPosition(animatableValueToLengthPoint(value, state));
546 return; 546 return;
547 case CSSPropertyOpacity: 547 case CSSPropertyOpacity:
548 // Avoiding a value of 1 forces a layer to be created. 548 // Avoiding a value of 1 forces a layer to be created.
549 style->setOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 549 style->setOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0,
550 nextafterf(1, 0))); 550 nextafterf(1, 0)));
551 return; 551 return;
552 case CSSPropertyOrder:
553 style->setOrder(
554 clampTo<int>(round(toAnimatableDouble(value)->toDouble())));
555 return;
552 case CSSPropertyOrphans: 556 case CSSPropertyOrphans:
553 style->setOrphans( 557 style->setOrphans(
554 clampTo<short>(round(toAnimatableDouble(value)->toDouble()), 1)); 558 clampTo<short>(round(toAnimatableDouble(value)->toDouble()), 1));
555 return; 559 return;
556 case CSSPropertyOutlineColor: 560 case CSSPropertyOutlineColor:
557 style->setOutlineColor(toAnimatableColor(value)->getColor()); 561 style->setOutlineColor(toAnimatableColor(value)->getColor());
558 style->setVisitedLinkOutlineColor( 562 style->setVisitedLinkOutlineColor(
559 toAnimatableColor(value)->visitedLinkColor()); 563 toAnimatableColor(value)->visitedLinkColor());
560 return; 564 return;
561 case CSSPropertyOutlineOffset: 565 case CSSPropertyOutlineOffset:
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 style->setRy( 865 style->setRy(
862 animatableValueToLength(value, state, ValueRangeNonNegative)); 866 animatableValueToLength(value, state, ValueRangeNonNegative));
863 return; 867 return;
864 868
865 default: 869 default:
866 ASSERT_NOT_REACHED(); 870 ASSERT_NOT_REACHED();
867 } 871 }
868 } 872 }
869 873
870 } // namespace blink 874 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698