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

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

Issue 25132005: Web Animations CSS: Handle border-spacing property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove text Created 7 years, 2 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
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 case CSSPropertyTextDecorationColor: 206 case CSSPropertyTextDecorationColor:
207 style->setTextDecorationColor(toAnimatableColor(value)->color()); 207 style->setTextDecorationColor(toAnimatableColor(value)->color());
208 style->setVisitedLinkTextDecorationColor(toAnimatableColor(value)->visit edLinkColor()); 208 style->setVisitedLinkTextDecorationColor(toAnimatableColor(value)->visit edLinkColor());
209 return; 209 return;
210 case CSSPropertyTextIndent: 210 case CSSPropertyTextIndent:
211 style->setTextIndent(animatableValueToLength(value, state)); 211 style->setTextIndent(animatableValueToLength(value, state));
212 return; 212 return;
213 case CSSPropertyTop: 213 case CSSPropertyTop:
214 style->setTop(animatableValueToLength(value, state)); 214 style->setTop(animatableValueToLength(value, state));
215 return; 215 return;
216 case CSSPropertyWebkitBorderHorizontalSpacing:
217 style->setHorizontalBorderSpacing(animatableValueRoundClampTo<unsigned s hort>(value));
218 return;
219 case CSSPropertyWebkitBorderVerticalSpacing:
220 style->setVerticalBorderSpacing(animatableValueRoundClampTo<unsigned sho rt>(value));
221 return;
216 case CSSPropertyWebkitColumnRuleColor: 222 case CSSPropertyWebkitColumnRuleColor:
217 style->setColumnRuleColor(toAnimatableColor(value)->color()); 223 style->setColumnRuleColor(toAnimatableColor(value)->color());
218 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi nkColor()); 224 style->setVisitedLinkColumnRuleColor(toAnimatableColor(value)->visitedLi nkColor());
219 return; 225 return;
220 case CSSPropertyWebkitColumnRuleWidth: 226 case CSSPropertyWebkitColumnRuleWidth:
221 style->setColumnRuleWidth(animatableValueRoundClampTo<unsigned short>(va lue)); 227 style->setColumnRuleWidth(animatableValueRoundClampTo<unsigned short>(va lue));
222 return; 228 return;
223 case CSSPropertyWebkitMaskBoxImageSource: 229 case CSSPropertyWebkitMaskBoxImageSource:
224 style->setMaskBoxImageSource(toAnimatableImage(value)->toStyleImage()); 230 style->setMaskBoxImageSource(toAnimatableImage(value)->toStyleImage());
225 return; 231 return;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 case CSSPropertyZIndex: 271 case CSSPropertyZIndex:
266 style->setZIndex(animatableValueRoundClampTo<int>(value)); 272 style->setZIndex(animatableValueRoundClampTo<int>(value));
267 return; 273 return;
268 default: 274 default:
269 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert y), "Web Animations not yet implemented: Unable to apply AnimatableValue to Rend erStyle: %s", getPropertyNameString(property).utf8().data()); 275 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert y), "Web Animations not yet implemented: Unable to apply AnimatableValue to Rend erStyle: %s", getPropertyNameString(property).utf8().data());
270 ASSERT_NOT_REACHED(); 276 ASSERT_NOT_REACHED();
271 } 277 }
272 } 278 }
273 279
274 } // namespace WebCore 280 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698