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

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

Issue 1099483002: Use alias_for with trivial property aliases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@alias
Patch Set: rebase a couple of tests Created 5 years, 8 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
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 return createFromColor(property, style); 350 return createFromColor(property, style);
351 case CSSPropertyBorderTopLeftRadius: 351 case CSSPropertyBorderTopLeftRadius:
352 return createFromLengthSize(style.borderTopLeftRadius(), style); 352 return createFromLengthSize(style.borderTopLeftRadius(), style);
353 case CSSPropertyBorderTopRightRadius: 353 case CSSPropertyBorderTopRightRadius:
354 return createFromLengthSize(style.borderTopRightRadius(), style); 354 return createFromLengthSize(style.borderTopRightRadius(), style);
355 case CSSPropertyBorderTopWidth: 355 case CSSPropertyBorderTopWidth:
356 return createFromDouble(style.borderTopWidth()); 356 return createFromDouble(style.borderTopWidth());
357 case CSSPropertyBottom: 357 case CSSPropertyBottom:
358 return createFromLength(style.bottom(), style); 358 return createFromLength(style.bottom(), style);
359 case CSSPropertyBoxShadow: 359 case CSSPropertyBoxShadow:
360 case CSSPropertyWebkitBoxShadow:
361 return AnimatableShadow::create(style.boxShadow()); 360 return AnimatableShadow::create(style.boxShadow());
362 case CSSPropertyClip: 361 case CSSPropertyClip:
363 if (style.hasAutoClip()) 362 if (style.hasAutoClip())
364 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueA uto)); 363 return AnimatableUnknown::create(CSSPrimitiveValue::create(CSSValueA uto));
365 return createFromLengthBox(style.clip(), style); 364 return createFromLengthBox(style.clip(), style);
366 case CSSPropertyColor: 365 case CSSPropertyColor:
367 return createFromColor(property, style); 366 return createFromColor(property, style);
368 case CSSPropertyFillOpacity: 367 case CSSPropertyFillOpacity:
369 return createFromDouble(style.fillOpacity()); 368 return createFromDouble(style.fillOpacity());
370 case CSSPropertyFill: 369 case CSSPropertyFill:
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 return createFromLength(style.svgStyle().ry(), style); 564 return createFromLength(style.svgStyle().ry(), style);
566 case CSSPropertyZIndex: 565 case CSSPropertyZIndex:
567 return createFromDouble(style.zIndex()); 566 return createFromDouble(style.zIndex());
568 default: 567 default:
569 ASSERT_NOT_REACHED(); 568 ASSERT_NOT_REACHED();
570 return nullptr; 569 return nullptr;
571 } 570 }
572 } 571 }
573 572
574 } // namespace blink 573 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698