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

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

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: Patch for landing adding TODO Created 3 years, 12 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 case CSSPropertyBorderTopWidth: 414 case CSSPropertyBorderTopWidth:
415 style->setBorderTopWidth( 415 style->setBorderTopWidth(
416 animatableLineWidthClamp<unsigned>(value, state)); 416 animatableLineWidthClamp<unsigned>(value, state));
417 return; 417 return;
418 case CSSPropertyBottom: 418 case CSSPropertyBottom:
419 style->setBottom(animatableValueToLength(value, state)); 419 style->setBottom(animatableValueToLength(value, state));
420 return; 420 return;
421 case CSSPropertyBoxShadow: 421 case CSSPropertyBoxShadow:
422 style->setBoxShadow(toAnimatableShadow(value)->getShadowList()); 422 style->setBoxShadow(toAnimatableShadow(value)->getShadowList());
423 return; 423 return;
424 case CSSPropertyCaretColor:
425 style->setCaretColor(toAnimatableColor(value)->getColor());
426 style->setVisitedLinkCaretColor(
427 toAnimatableColor(value)->visitedLinkColor());
428 return;
424 case CSSPropertyClip: 429 case CSSPropertyClip:
425 style->setClip(animatableValueToLengthBox(value, state)); 430 style->setClip(animatableValueToLengthBox(value, state));
426 return; 431 return;
427 case CSSPropertyColor: 432 case CSSPropertyColor:
428 style->setColor(toAnimatableColor(value)->getColor()); 433 style->setColor(toAnimatableColor(value)->getColor());
429 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()); 434 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor());
430 return; 435 return;
431 case CSSPropertyFillOpacity: 436 case CSSPropertyFillOpacity:
432 style->setFillOpacity( 437 style->setFillOpacity(
433 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); 438 clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1));
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 style->setRy( 849 style->setRy(
845 animatableValueToLength(value, state, ValueRangeNonNegative)); 850 animatableValueToLength(value, state, ValueRangeNonNegative));
846 return; 851 return;
847 852
848 default: 853 default:
849 ASSERT_NOT_REACHED(); 854 ASSERT_NOT_REACHED();
850 } 855 }
851 } 856 }
852 857
853 } // namespace blink 858 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleAutoColor.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698