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

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

Issue 212673002: CSS Transforms: Implement perspective-origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 case CSSPropertyWebkitMaskImage: 453 case CSSPropertyWebkitMaskImage:
454 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers (), style); 454 return createFromFillLayers<CSSPropertyWebkitMaskImage>(style.maskLayers (), style);
455 case CSSPropertyWebkitMaskPositionX: 455 case CSSPropertyWebkitMaskPositionX:
456 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa yers(), style); 456 return createFromFillLayers<CSSPropertyWebkitMaskPositionX>(style.maskLa yers(), style);
457 case CSSPropertyWebkitMaskPositionY: 457 case CSSPropertyWebkitMaskPositionY:
458 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa yers(), style); 458 return createFromFillLayers<CSSPropertyWebkitMaskPositionY>(style.maskLa yers(), style);
459 case CSSPropertyWebkitMaskSize: 459 case CSSPropertyWebkitMaskSize:
460 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers( ), style); 460 return createFromFillLayers<CSSPropertyWebkitMaskSize>(style.maskLayers( ), style);
461 case CSSPropertyPerspective: 461 case CSSPropertyPerspective:
462 return createFromDouble(style.perspective()); 462 return createFromDouble(style.perspective());
463 case CSSPropertyPerspectiveOrigin:
464 ASSERT(RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled());
465 return AnimatableLengthPoint::create(
466 createFromLength(style.perspectiveOriginX(), style),
467 createFromLength(style.perspectiveOriginY(), style));
463 case CSSPropertyWebkitPerspectiveOriginX: 468 case CSSPropertyWebkitPerspectiveOriginX:
469 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled());
464 return createFromLength(style.perspectiveOriginX(), style); 470 return createFromLength(style.perspectiveOriginX(), style);
465 case CSSPropertyWebkitPerspectiveOriginY: 471 case CSSPropertyWebkitPerspectiveOriginY:
472 ASSERT(!RuntimeEnabledFeatures::cssTransformsUnprefixedEnabled());
466 return createFromLength(style.perspectiveOriginY(), style); 473 return createFromLength(style.perspectiveOriginY(), style);
467 case CSSPropertyShapeOutside: 474 case CSSPropertyShapeOutside:
468 return createFromShapeValue(style.shapeOutside()); 475 return createFromShapeValue(style.shapeOutside());
469 case CSSPropertyShapeMargin: 476 case CSSPropertyShapeMargin:
470 return createFromLength(style.shapeMargin(), style); 477 return createFromLength(style.shapeMargin(), style);
471 case CSSPropertyShapeImageThreshold: 478 case CSSPropertyShapeImageThreshold:
472 return createFromDouble(style.shapeImageThreshold()); 479 return createFromDouble(style.shapeImageThreshold());
473 case CSSPropertyWebkitTextStrokeColor: 480 case CSSPropertyWebkitTextStrokeColor:
474 return createFromColor(property, style); 481 return createFromColor(property, style);
475 case CSSPropertyTransform: 482 case CSSPropertyTransform:
(...skipping 26 matching lines...) Expand all
502 case CSSPropertyZoom: 509 case CSSPropertyZoom:
503 return createFromDouble(style.zoom()); 510 return createFromDouble(style.zoom());
504 default: 511 default:
505 ASSERT_NOT_REACHED(); 512 ASSERT_NOT_REACHED();
506 // This return value is to avoid a release crash if possible. 513 // This return value is to avoid a release crash if possible.
507 return AnimatableUnknown::create(nullptr); 514 return AnimatableUnknown::create(nullptr);
508 } 515 }
509 } 516 }
510 517
511 } // namespace WebCore 518 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/transitions/unprefixed-perspective-origin-expected.txt ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698