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

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: Disable compositing assert hit by new tests. Created 6 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 | 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 CSSPropertyShapeOutside: 466 case CSSPropertyShapeOutside:
467 return createFromShapeValue(style.shapeOutside()); 467 return createFromShapeValue(style.shapeOutside());
468 case CSSPropertyShapeMargin: 468 case CSSPropertyShapeMargin:
469 return createFromLength(style.shapeMargin(), style); 469 return createFromLength(style.shapeMargin(), style);
470 case CSSPropertyShapeImageThreshold: 470 case CSSPropertyShapeImageThreshold:
(...skipping 21 matching lines...) Expand all
492 case CSSPropertyZoom: 492 case CSSPropertyZoom:
493 return createFromDouble(style.zoom()); 493 return createFromDouble(style.zoom());
494 default: 494 default:
495 ASSERT_NOT_REACHED(); 495 ASSERT_NOT_REACHED();
496 // This return value is to avoid a release crash if possible. 496 // This return value is to avoid a release crash if possible.
497 return AnimatableUnknown::create(nullptr); 497 return AnimatableUnknown::create(nullptr);
498 } 498 }
499 } 499 }
500 500
501 } // namespace WebCore 501 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/transitions/unprefixed-perspective-expected.txt ('k') | Source/core/animation/css/CSSAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698