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

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

Issue 898873002: CL for perf tryjob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 case CSSPropertyWidth: 514 case CSSPropertyWidth:
515 return createFromLength(style.width(), style); 515 return createFromLength(style.width(), style);
516 case CSSPropertyWordSpacing: 516 case CSSPropertyWordSpacing:
517 return createFromDouble(style.wordSpacing()); 517 return createFromDouble(style.wordSpacing());
518 case CSSPropertyVerticalAlign: 518 case CSSPropertyVerticalAlign:
519 if (style.verticalAlign() == LENGTH) 519 if (style.verticalAlign() == LENGTH)
520 return createFromLength(style.verticalAlignLength(), style); 520 return createFromLength(style.verticalAlignLength(), style);
521 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign())); 521 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign()));
522 case CSSPropertyVisibility: 522 case CSSPropertyVisibility:
523 return AnimatableVisibility::create(style.visibility()); 523 return AnimatableVisibility::create(style.visibility());
524 case CSSPropertyX:
525 return createFromLength(style.svgStyle().x(), style);
526 case CSSPropertyY:
527 return createFromLength(style.svgStyle().y(), style);
524 case CSSPropertyZIndex: 528 case CSSPropertyZIndex:
525 return createFromDouble(style.zIndex()); 529 return createFromDouble(style.zIndex());
526 case CSSPropertyZoom: 530 case CSSPropertyZoom:
527 return createFromDouble(style.zoom()); 531 return createFromDouble(style.zoom());
528 default: 532 default:
529 ASSERT_NOT_REACHED(); 533 ASSERT_NOT_REACHED();
530 // This return value is to avoid a release crash if possible. 534 // This return value is to avoid a release crash if possible.
531 return AnimatableUnknown::create(nullptr); 535 return AnimatableUnknown::create(nullptr);
532 } 536 }
533 } 537 }
534 538
535 } // namespace blink 539 } // 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