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

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

Issue 211233003: CSS Transforms: Implement perspective (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update interpolation tests. Created 6 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 | Annotate | Revision Log
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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 case CSSPropertyWebkitMaskBoxImageWidth: 450 case CSSPropertyWebkitMaskBoxImageWidth:
451 return createFromBorderImageLengthBox(style.maskBoxImageWidth(), style); 451 return createFromBorderImageLengthBox(style.maskBoxImageWidth(), style);
452 case CSSPropertyWebkitMaskImage: 452 case CSSPropertyWebkitMaskImage:
453 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers (), style); 453 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers (), style);
454 case CSSPropertyWebkitMaskPositionX: 454 case CSSPropertyWebkitMaskPositionX:
455 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa yers(), style); 455 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa yers(), style);
456 case CSSPropertyWebkitMaskPositionY: 456 case CSSPropertyWebkitMaskPositionY:
457 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa yers(), style); 457 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa yers(), style);
458 case CSSPropertyWebkitMaskSize: 458 case CSSPropertyWebkitMaskSize:
459 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers( ), style); 459 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers( ), style);
460 case CSSPropertyWebkitPerspective: 460 case CSSPropertyPerspective:
461 return createFromDouble(style.perspective()); 461 return createFromDouble(style.perspective());
462 case CSSPropertyWebkitPerspectiveOriginX: 462 case CSSPropertyWebkitPerspectiveOriginX:
463 return createFromLength(style.perspectiveOriginX(), style); 463 return createFromLength(style.perspectiveOriginX(), style);
464 case CSSPropertyWebkitPerspectiveOriginY: 464 case CSSPropertyWebkitPerspectiveOriginY:
465 return createFromLength(style.perspectiveOriginY(), style); 465 return createFromLength(style.perspectiveOriginY(), style);
466 case CSSPropertyShapeInside: 466 case CSSPropertyShapeInside:
467 return createFromShapeValue(style.shapeInside()); 467 return createFromShapeValue(style.shapeInside());
468 case CSSPropertyShapeOutside: 468 case CSSPropertyShapeOutside:
469 return createFromShapeValue(style.shapeOutside()); 469 return createFromShapeValue(style.shapeOutside());
470 case CSSPropertyShapeMargin: 470 case CSSPropertyShapeMargin:
(...skipping 23 matching lines...) Expand all
494 case CSSPropertyZoom: 494 case CSSPropertyZoom:
495 return createFromDouble(style.zoom()); 495 return createFromDouble(style.zoom());
496 default: 496 default:
497 ASSERT_NOT_REACHED(); 497 ASSERT_NOT_REACHED();
498 // This return value is to avoid a release crash if possible. 498 // This return value is to avoid a release crash if possible.
499 return AnimatableUnknown::create(nullptr); 499 return AnimatableUnknown::create(nullptr);
500 } 500 }
501 } 501 }
502 502
503 } // namespace WebCore 503 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698