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

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

Issue 643893002: Store [-webkit-]perspective-origin as a LengthPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase (again). Created 6 years, 2 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 | « no previous file | Source/core/css/CSSProperties.in » ('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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers (), style); 464 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers (), style);
465 case CSSPropertyWebkitMaskPositionX: 465 case CSSPropertyWebkitMaskPositionX:
466 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa yers(), style); 466 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa yers(), style);
467 case CSSPropertyWebkitMaskPositionY: 467 case CSSPropertyWebkitMaskPositionY:
468 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa yers(), style); 468 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa yers(), style);
469 case CSSPropertyWebkitMaskSize: 469 case CSSPropertyWebkitMaskSize:
470 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers( ), style); 470 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers( ), style);
471 case CSSPropertyPerspective: 471 case CSSPropertyPerspective:
472 return createFromDouble(style.perspective()); 472 return createFromDouble(style.perspective());
473 case CSSPropertyPerspectiveOrigin: 473 case CSSPropertyPerspectiveOrigin:
474 return AnimatableLengthPoint::create( 474 return createFromLengthPoint(style.perspectiveOrigin(), style);
475 createFromLength(style.perspectiveOriginX(), style),
476 createFromLength(style.perspectiveOriginY(), style));
477 case CSSPropertyShapeOutside: 475 case CSSPropertyShapeOutside:
478 return createFromShapeValue(style.shapeOutside()); 476 return createFromShapeValue(style.shapeOutside());
479 case CSSPropertyShapeMargin: 477 case CSSPropertyShapeMargin:
480 return createFromLength(style.shapeMargin(), style); 478 return createFromLength(style.shapeMargin(), style);
481 case CSSPropertyShapeImageThreshold: 479 case CSSPropertyShapeImageThreshold:
482 return createFromDouble(style.shapeImageThreshold()); 480 return createFromDouble(style.shapeImageThreshold());
483 case CSSPropertyWebkitTextStrokeColor: 481 case CSSPropertyWebkitTextStrokeColor:
484 return createFromColor(property, style); 482 return createFromColor(property, style);
485 case CSSPropertyTransform: 483 case CSSPropertyTransform:
486 return AnimatableTransform::create(style.transform()); 484 return AnimatableTransform::create(style.transform());
(...skipping 19 matching lines...) Expand all
506 case CSSPropertyZoom: 504 case CSSPropertyZoom:
507 return createFromDouble(style.zoom()); 505 return createFromDouble(style.zoom());
508 default: 506 default:
509 ASSERT_NOT_REACHED(); 507 ASSERT_NOT_REACHED();
510 // This return value is to avoid a release crash if possible. 508 // This return value is to avoid a release crash if possible.
511 return AnimatableUnknown::create(nullptr); 509 return AnimatableUnknown::create(nullptr);
512 } 510 }
513 } 511 }
514 512
515 } // namespace blink 513 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698