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

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

Issue 1150313002: *** NOT FOR LANDING *** Unprefix multicol behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 return; 521 return;
522 case CSSPropertyWebkitBorderHorizontalSpacing: 522 case CSSPropertyWebkitBorderHorizontalSpacing:
523 style->setHorizontalBorderSpacing(animatableValueRoundClampTo<unsigned s hort>(value)); 523 style->setHorizontalBorderSpacing(animatableValueRoundClampTo<unsigned s hort>(value));
524 return; 524 return;
525 case CSSPropertyWebkitBorderVerticalSpacing: 525 case CSSPropertyWebkitBorderVerticalSpacing:
526 style->setVerticalBorderSpacing(animatableValueRoundClampTo<unsigned sho rt>(value)); 526 style->setVerticalBorderSpacing(animatableValueRoundClampTo<unsigned sho rt>(value));
527 return; 527 return;
528 case CSSPropertyWebkitClipPath: 528 case CSSPropertyWebkitClipPath:
529 style->setClipPath(toAnimatableClipPathOperation(value)->clipPathOperati on()); 529 style->setClipPath(toAnimatableClipPathOperation(value)->clipPathOperati on());
530 return; 530 return;
531 case CSSPropertyWebkitColumnCount: 531 case CSSPropertyColumnCount:
532 style->setColumnCount(animatableValueRoundClampTo<unsigned short>(value, 1)); 532 style->setColumnCount(animatableValueRoundClampTo<unsigned short>(value, 1));
533 return; 533 return;
534 case CSSPropertyWebkitColumnGap: 534 case CSSPropertyColumnGap:
535 style->setColumnGap(clampTo(toAnimatableDouble(value)->toDouble(), 0)); 535 style->setColumnGap(clampTo(toAnimatableDouble(value)->toDouble(), 0));
536 return; 536 return;
537 case CSSPropertyWebkitColumnRuleColor: 537 case CSSPropertyColumnRuleColor:
538 style->setColumnRuleColor(toAnimatableColor(value)->color()); 538 style->setColumnRuleColor(toAnimatableColor(value)->color());
539 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi nkColor()); 539 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi nkColor());
540 return; 540 return;
541 case CSSPropertyWebkitColumnWidth: 541 case CSSPropertyColumnWidth:
542 style->setColumnWidth(clampTo(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::epsilon())); 542 style->setColumnWidth(clampTo(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::epsilon()));
543 return; 543 return;
544 case CSSPropertyWebkitColumnRuleWidth: 544 case CSSPropertyColumnRuleWidth:
545 style->setColumnRuleWidth(animatableValueRoundClampTo<unsigned short>(va lue)); 545 style->setColumnRuleWidth(animatableValueRoundClampTo<unsigned short>(va lue));
546 return; 546 return;
547 case CSSPropertyWebkitFilter: 547 case CSSPropertyWebkitFilter:
548 style->setFilter(toAnimatableFilterOperations(value)->operations()); 548 style->setFilter(toAnimatableFilterOperations(value)->operations());
549 return; 549 return;
550 case CSSPropertyWebkitMaskBoxImageOutset: 550 case CSSPropertyWebkitMaskBoxImageOutset:
551 style->setMaskBoxImageOutset(animatableValueToBorderImageLengthBox(value , state)); 551 style->setMaskBoxImageOutset(animatableValueToBorderImageLengthBox(value , state));
552 return; 552 return;
553 case CSSPropertyWebkitMaskBoxImageSlice: 553 case CSSPropertyWebkitMaskBoxImageSlice:
554 style->setMaskBoxImageSlices(animatableValueToLengthBox(toAnimatableLeng thBoxAndBool(value)->box(), state, ValueRangeNonNegative)); 554 style->setMaskBoxImageSlices(animatableValueToLengthBox(toAnimatableLeng thBoxAndBool(value)->box(), state, ValueRangeNonNegative));
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 case CSSPropertyRy: 661 case CSSPropertyRy:
662 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative )); 662 style->setRy(animatableValueToLength(value, state, ValueRangeNonNegative ));
663 return; 663 return;
664 664
665 default: 665 default:
666 ASSERT_NOT_REACHED(); 666 ASSERT_NOT_REACHED();
667 } 667 }
668 } 668 }
669 669
670 } // namespace blink 670 } // namespace blink
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