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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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
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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 case CSSPropertyWidth: 521 case CSSPropertyWidth:
522 return createFromLength(style.width(), style); 522 return createFromLength(style.width(), style);
523 case CSSPropertyWordSpacing: 523 case CSSPropertyWordSpacing:
524 return createFromDouble(style.wordSpacing()); 524 return createFromDouble(style.wordSpacing());
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:
532 return createFromLength(style.svgStyle().x(), style);
533 case CSSPropertyY:
534 return createFromLength(style.svgStyle().y(), style);
531 case CSSPropertyZIndex: 535 case CSSPropertyZIndex:
532 return createFromDouble(style.zIndex()); 536 return createFromDouble(style.zIndex());
533 case CSSPropertyZoom: 537 case CSSPropertyZoom:
534 return createFromDouble(style.zoom()); 538 return createFromDouble(style.zoom());
535 default: 539 default:
536 ASSERT_NOT_REACHED(); 540 ASSERT_NOT_REACHED();
537 // This return value is to avoid a release crash if possible. 541 // This return value is to avoid a release crash if possible.
538 return AnimatableUnknown::create(nullptr); 542 return AnimatableUnknown::create(nullptr);
539 } 543 }
540 } 544 }
541 545
542 } // namespace blink 546 } // 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