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

Side by Side Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 746173002: Respect fallback colors when interpolating text-decoration-color. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 case CSSPropertyStrokeMiterlimit: 426 case CSSPropertyStrokeMiterlimit:
427 return createFromDouble(style.strokeMiterLimit()); 427 return createFromDouble(style.strokeMiterLimit());
428 case CSSPropertyStrokeOpacity: 428 case CSSPropertyStrokeOpacity:
429 return createFromDouble(style.strokeOpacity()); 429 return createFromDouble(style.strokeOpacity());
430 case CSSPropertyStroke: 430 case CSSPropertyStroke:
431 return AnimatableSVGPaint::create( 431 return AnimatableSVGPaint::create(
432 style.svgStyle().strokePaintType(), style.svgStyle().visitedLinkStro kePaintType(), 432 style.svgStyle().strokePaintType(), style.svgStyle().visitedLinkStro kePaintType(),
433 style.svgStyle().strokePaintColor(), style.svgStyle().visitedLinkStr okePaintColor(), 433 style.svgStyle().strokePaintColor(), style.svgStyle().visitedLinkStr okePaintColor(),
434 style.svgStyle().strokePaintUri(), style.svgStyle().visitedLinkStrok ePaintUri()); 434 style.svgStyle().strokePaintUri(), style.svgStyle().visitedLinkStrok ePaintUri());
435 case CSSPropertyTextDecorationColor: 435 case CSSPropertyTextDecorationColor:
436 return AnimatableColor::create(style.textDecorationColor().resolve(style .color()), style.visitedLinkTextDecorationColor().resolve(style.visitedLinkColor ())); 436 return createFromColor(property, style);
437 case CSSPropertyTextIndent: 437 case CSSPropertyTextIndent:
438 return createFromLength(style.textIndent(), style); 438 return createFromLength(style.textIndent(), style);
439 case CSSPropertyTextShadow: 439 case CSSPropertyTextShadow:
440 return AnimatableShadow::create(style.textShadow()); 440 return AnimatableShadow::create(style.textShadow());
441 case CSSPropertyTop: 441 case CSSPropertyTop:
442 return createFromLength(style.top(), style); 442 return createFromLength(style.top(), style);
443 case CSSPropertyWebkitBorderHorizontalSpacing: 443 case CSSPropertyWebkitBorderHorizontalSpacing:
444 return createFromDouble(style.horizontalBorderSpacing()); 444 return createFromDouble(style.horizontalBorderSpacing());
445 case CSSPropertyWebkitBorderVerticalSpacing: 445 case CSSPropertyWebkitBorderVerticalSpacing:
446 return createFromDouble(style.verticalBorderSpacing()); 446 return createFromDouble(style.verticalBorderSpacing());
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 case CSSPropertyZoom: 509 case CSSPropertyZoom:
510 return createFromDouble(style.zoom()); 510 return createFromDouble(style.zoom());
511 default: 511 default:
512 ASSERT_NOT_REACHED(); 512 ASSERT_NOT_REACHED();
513 // This return value is to avoid a release crash if possible. 513 // This return value is to avoid a release crash if possible.
514 return AnimatableUnknown::create(nullptr); 514 return AnimatableUnknown::create(nullptr);
515 } 515 }
516 } 516 }
517 517
518 } // namespace blink 518 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698