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

Side by Side Diff: Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 209443007: Remove shape-inside support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove now unused segmentIsEmpty 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
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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 return; 555 return;
556 case CSSPropertyWebkitPerspective: 556 case CSSPropertyWebkitPerspective:
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 CSSPropertyShapeInside:
566 style->setShapeInside(toAnimatableShapeValue(value)->shapeValue());
567 return;
568 case CSSPropertyShapeOutside: 565 case CSSPropertyShapeOutside:
569 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue()); 566 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue());
570 return; 567 return;
571 case CSSPropertyShapeMargin: 568 case CSSPropertyShapeMargin:
572 style->setShapeMargin(animatableValueToLength(value, state, NonNegativeV alues)); 569 style->setShapeMargin(animatableValueToLength(value, state, NonNegativeV alues));
573 return; 570 return;
574 case CSSPropertyShapeImageThreshold: 571 case CSSPropertyShapeImageThreshold:
575 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)-> toDouble(), 0, 1)); 572 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)-> toDouble(), 0, 1));
576 return; 573 return;
577 case CSSPropertyWebkitTextStrokeColor: 574 case CSSPropertyWebkitTextStrokeColor:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 return; 607 return;
611 case CSSPropertyZoom: 608 case CSSPropertyZoom:
612 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()));
613 return; 610 return;
614 default: 611 default:
615 ASSERT_NOT_REACHED(); 612 ASSERT_NOT_REACHED();
616 } 613 }
617 } 614 }
618 615
619 } // namespace WebCore 616 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698