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

Side by Side Diff: Source/core/css/resolver/AnimatedStyleBuilder.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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 return; 546 return;
547 case CSSPropertyWebkitMaskPositionX: 547 case CSSPropertyWebkitMaskPositionX:
548 setOnFillLayers<CSSPropertyWebkitMaskPositionX>(style->accessMaskLayers( ), value, state); 548 setOnFillLayers<CSSPropertyWebkitMaskPositionX>(style->accessMaskLayers( ), value, state);
549 return; 549 return;
550 case CSSPropertyWebkitMaskPositionY: 550 case CSSPropertyWebkitMaskPositionY:
551 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers( ), value, state); 551 setOnFillLayers<CSSPropertyWebkitMaskPositionY>(style->accessMaskLayers( ), value, state);
552 return; 552 return;
553 case CSSPropertyWebkitMaskSize: 553 case CSSPropertyWebkitMaskSize:
554 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va lue, state); 554 setOnFillLayers<CSSPropertyWebkitMaskSize>(style->accessMaskLayers(), va lue, state);
555 return; 555 return;
556 case CSSPropertyWebkitPerspective: 556 case CSSPropertyPerspective:
557 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble ())); 557 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble ()));
558 return; 558 return;
559 case CSSPropertyWebkitPerspectiveOriginX: 559 case CSSPropertyWebkitPerspectiveOriginX:
560 style->setPerspectiveOriginX(animatableValueToLength(value, state)); 560 style->setPerspectiveOriginX(animatableValueToLength(value, state));
561 return; 561 return;
562 case CSSPropertyWebkitPerspectiveOriginY: 562 case CSSPropertyWebkitPerspectiveOriginY:
563 style->setPerspectiveOriginY(animatableValueToLength(value, state)); 563 style->setPerspectiveOriginY(animatableValueToLength(value, state));
564 return; 564 return;
565 case CSSPropertyShapeOutside: 565 case CSSPropertyShapeOutside:
566 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); 566 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue());
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 return; 607 return;
608 case CSSPropertyZoom: 608 case CSSPropertyZoom:
609 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::denorm_min())); 609 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::denorm_min()));
610 return; 610 return;
611 default: 611 default:
612 ASSERT_NOT_REACHED(); 612 ASSERT_NOT_REACHED();
613 } 613 }
614 } 614 }
615 615
616 } // namespace WebCore 616 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698