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

Side by Side Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 case CSSPropertyVerticalAlign: 525 case CSSPropertyVerticalAlign:
526 if (style.verticalAlign() == LENGTH) 526 if (style.verticalAlign() == LENGTH)
527 return createFromLength(style.verticalAlignLength(), style); 527 return createFromLength(style.verticalAlignLength(), style);
528 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign())); 528 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign()));
529 case CSSPropertyVisibility: 529 case CSSPropertyVisibility:
530 return AnimatableVisibility::create(style.visibility()); 530 return AnimatableVisibility::create(style.visibility());
531 case CSSPropertyX: 531 case CSSPropertyX:
532 return createFromLength(style.svgStyle().x(), style); 532 return createFromLength(style.svgStyle().x(), style);
533 case CSSPropertyY: 533 case CSSPropertyY:
534 return createFromLength(style.svgStyle().y(), style); 534 return createFromLength(style.svgStyle().y(), style);
535 case CSSPropertyRx:
536 return createFromLength(style.svgStyle().rx(), style);
537 case CSSPropertyRy:
538 return createFromLength(style.svgStyle().ry(), style);
535 case CSSPropertyZIndex: 539 case CSSPropertyZIndex:
536 return createFromDouble(style.zIndex()); 540 return createFromDouble(style.zIndex());
537 default: 541 default:
538 ASSERT_NOT_REACHED(); 542 ASSERT_NOT_REACHED();
539 // This return value is to avoid a release crash if possible. 543 // This return value is to avoid a release crash if possible.
540 return AnimatableUnknown::create(nullptr); 544 return AnimatableUnknown::create(nullptr);
541 } 545 }
542 } 546 }
543 547
544 } // namespace blink 548 } // 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