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

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

Issue 1300323003: Make flex-grow and flex-shrink interpolation continuous with 0 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test Created 5 years, 4 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
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 case CSSPropertyWebkitMaskPositionX: 575 case CSSPropertyWebkitMaskPositionX:
576 setOnFillLayers<CSSPropertyWebkitMaskPositionX>(style->accessMaskLayers( ), value, state); 576 setOnFillLayers<CSSPropertyWebkitMaskPositionX>(style->accessMaskLayers( ), value, state);
577 return; 577 return;
578 case CSSPropertyWebkitMaskPositionY: 578 case CSSPropertyWebkitMaskPositionY:
579 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers( ), value, state); 579 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers( ), value, state);
580 return; 580 return;
581 case CSSPropertyWebkitMaskSize: 581 case CSSPropertyWebkitMaskSize:
582 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va lue, state); 582 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va lue, state);
583 return; 583 return;
584 case CSSPropertyPerspective: 584 case CSSPropertyPerspective:
585 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble ())); 585 style->setPerspective(value->isDouble() ? clampTo<float>(toAnimatableDou ble(value)->toDouble()) : 0);
586 return; 586 return;
587 case CSSPropertyPerspectiveOrigin: 587 case CSSPropertyPerspectiveOrigin:
588 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state)); 588 style->setPerspectiveOrigin(animatableValueToLengthPoint(value, state));
589 return; 589 return;
590 case CSSPropertyShapeOutside: 590 case CSSPropertyShapeOutside:
591 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); 591 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue());
592 return; 592 return;
593 case CSSPropertyShapeMargin: 593 case CSSPropertyShapeMargin:
594 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo nNegative)); 594 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo nNegative));
595 return; 595 return;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 case CSSPropertyRy: 682 case CSSPropertyRy:
683 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative )); 683 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative ));
684 return; 684 return;
685 685
686 default: 686 default:
687 ASSERT_NOT_REACHED(); 687 ASSERT_NOT_REACHED();
688 } 688 }
689 } 689 }
690 690
691 } // namespace blink 691 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698