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

Side by Side Diff: Source/core/animation/css/CSSAnimatableValueFactory.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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 case CSSPropertyWidth: 530 case CSSPropertyWidth:
531 return createFromLength(style.width(), style); 531 return createFromLength(style.width(), style);
532 case CSSPropertyWordSpacing: 532 case CSSPropertyWordSpacing:
533 return createFromDouble(style.wordSpacing()); 533 return createFromDouble(style.wordSpacing());
534 case CSSPropertyVerticalAlign: 534 case CSSPropertyVerticalAlign:
535 if (style.verticalAlign() == LENGTH) 535 if (style.verticalAlign() == LENGTH)
536 return createFromLength(style.verticalAlignLength(), style); 536 return createFromLength(style.verticalAlignLength(), style);
537 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign())); 537 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign()));
538 case CSSPropertyVisibility: 538 case CSSPropertyVisibility:
539 return AnimatableVisibility::create(style.visibility()); 539 return AnimatableVisibility::create(style.visibility());
540 case CSSPropertyCx:
541 return createFromLength(style.svgStyle().cx(), style);
542 case CSSPropertyCy:
543 return createFromLength(style.svgStyle().cy(), style);
540 case CSSPropertyX: 544 case CSSPropertyX:
541 return createFromLength(style.svgStyle().x(), style); 545 return createFromLength(style.svgStyle().x(), style);
542 case CSSPropertyY: 546 case CSSPropertyY:
543 return createFromLength(style.svgStyle().y(), style); 547 return createFromLength(style.svgStyle().y(), style);
548 case CSSPropertyR:
549 return createFromLength(style.svgStyle().r(), style);
544 case CSSPropertyRx: 550 case CSSPropertyRx:
545 return createFromLength(style.svgStyle().rx(), style); 551 return createFromLength(style.svgStyle().rx(), style);
546 case CSSPropertyRy: 552 case CSSPropertyRy:
547 return createFromLength(style.svgStyle().ry(), style); 553 return createFromLength(style.svgStyle().ry(), style);
548 case CSSPropertyZIndex: 554 case CSSPropertyZIndex:
549 return createFromDouble(style.zIndex()); 555 return createFromDouble(style.zIndex());
550 default: 556 default:
551 ASSERT_NOT_REACHED(); 557 ASSERT_NOT_REACHED();
552 // This return value is to avoid a release crash if possible. 558 // This return value is to avoid a release crash if possible.
553 return AnimatableUnknown::create(nullptr); 559 return AnimatableUnknown::create(nullptr);
554 } 560 }
555 } 561 }
556 562
557 } // namespace blink 563 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/css-properties-as-js-properties-expected.txt ('k') | Source/core/animation/css/CSSPropertyEquality.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698