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

Side by Side Diff: Source/core/animation/css/CSSAnimatableValueFactory.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
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Should be interpolated as 'length', ie double? 203 // Should be interpolated as 'length', ie double?
204 return createFromLength(style->paddingTop(), style); 204 return createFromLength(style->paddingTop(), style);
205 case CSSPropertyRight: 205 case CSSPropertyRight:
206 return createFromLength(style->right(), style); 206 return createFromLength(style->right(), style);
207 case CSSPropertyTextDecorationColor: 207 case CSSPropertyTextDecorationColor:
208 return createFromColor(property, style); 208 return createFromColor(property, style);
209 case CSSPropertyTextIndent: 209 case CSSPropertyTextIndent:
210 return createFromLength(style->textIndent(), style); 210 return createFromLength(style->textIndent(), style);
211 case CSSPropertyTop: 211 case CSSPropertyTop:
212 return createFromLength(style->top(), style); 212 return createFromLength(style->top(), style);
213 case CSSPropertyWebkitBorderHorizontalSpacing:
214 return createFromDouble(style->horizontalBorderSpacing());
215 case CSSPropertyWebkitBorderVerticalSpacing:
216 return createFromDouble(style->verticalBorderSpacing());
213 case CSSPropertyWebkitColumnRuleColor: 217 case CSSPropertyWebkitColumnRuleColor:
214 return createFromColor(property, style); 218 return createFromColor(property, style);
215 case CSSPropertyWebkitColumnRuleWidth: 219 case CSSPropertyWebkitColumnRuleWidth:
216 return createFromDouble(style->columnRuleWidth()); 220 return createFromDouble(style->columnRuleWidth());
217 case CSSPropertyWebkitMaskBoxImageSource: 221 case CSSPropertyWebkitMaskBoxImageSource:
218 return AnimatableImage::create(style->maskBoxImageSource()); 222 return AnimatableImage::create(style->maskBoxImageSource());
219 case CSSPropertyWebkitMaskImage: 223 case CSSPropertyWebkitMaskImage:
220 return AnimatableImage::create(style->maskImage()); 224 return AnimatableImage::create(style->maskImage());
221 case CSSPropertyWebkitPerspectiveOriginX: 225 case CSSPropertyWebkitPerspectiveOriginX:
222 return createFromLength(style->perspectiveOriginX(), style); 226 return createFromLength(style->perspectiveOriginX(), style);
(...skipping 20 matching lines...) Expand all
243 case CSSPropertyZIndex: 247 case CSSPropertyZIndex:
244 return createFromDouble(style->zIndex()); 248 return createFromDouble(style->zIndex());
245 default: 249 default:
246 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert y), "Web Animations not yet implemented: Create AnimatableValue from render styl e: %s", getPropertyNameString(property).utf8().data()); 250 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert y), "Web Animations not yet implemented: Create AnimatableValue from render styl e: %s", getPropertyNameString(property).utf8().data());
247 ASSERT_NOT_REACHED(); 251 ASSERT_NOT_REACHED();
248 return 0; 252 return 0;
249 } 253 }
250 } 254 }
251 255
252 } // namespace WebCore 256 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698