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

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

Issue 980233002: [svg2] Make 'cx', 'cy' and 'r' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 return; 619 return;
620 case CSSPropertyVerticalAlign: 620 case CSSPropertyVerticalAlign:
621 style->setVerticalAlignLength(animatableValueToLength(value, state)); 621 style->setVerticalAlignLength(animatableValueToLength(value, state));
622 return; 622 return;
623 case CSSPropertyVisibility: 623 case CSSPropertyVisibility:
624 style->setVisibility(toAnimatableVisibility(value)->visibility()); 624 style->setVisibility(toAnimatableVisibility(value)->visibility());
625 return; 625 return;
626 case CSSPropertyZIndex: 626 case CSSPropertyZIndex:
627 style->setZIndex(animatableValueRoundClampTo<int>(value)); 627 style->setZIndex(animatableValueRoundClampTo<int>(value));
628 return; 628 return;
629 case CSSPropertyCx:
630 style->setCx(animatableValueToLength(value, state));
631 return;
632 case CSSPropertyCy:
633 style->setCy(animatableValueToLength(value, state));
634 return;
629 case CSSPropertyX: 635 case CSSPropertyX:
630 style->setX(animatableValueToLength(value, state)); 636 style->setX(animatableValueToLength(value, state));
631 return; 637 return;
632 case CSSPropertyY: 638 case CSSPropertyY:
633 style->setY(animatableValueToLength(value, state)); 639 style->setY(animatableValueToLength(value, state));
634 return; 640 return;
641 case CSSPropertyR:
642 style->setR(animatableValueToLength(value, state));
643 return;
635 case CSSPropertyRx: 644 case CSSPropertyRx:
636 style->setRx(animatableValueToLength(value, state)); 645 style->setRx(animatableValueToLength(value, state));
637 return; 646 return;
638 case CSSPropertyRy: 647 case CSSPropertyRy:
639 style->setRy(animatableValueToLength(value, state)); 648 style->setRy(animatableValueToLength(value, state));
640 return; 649 return;
641 650
642 default: 651 default:
643 ASSERT_NOT_REACHED(); 652 ASSERT_NOT_REACHED();
644 } 653 }
645 } 654 }
646 655
647 } // namespace blink 656 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698