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

Side by Side Diff: sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 1069403003: Remove CSS list-style (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | sky/engine/core/animation/css/CSSPropertyEquality.cpp » ('j') | 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // if text zoom is enabled (if neither is enabled it's irrelevant as the y're probably the same). 319 // if text zoom is enabled (if neither is enabled it's irrelevant as the y're probably the same).
320 // FIXME: Should we introduce an option to pass the computed font size h ere, allowing consumers to 320 // FIXME: Should we introduce an option to pass the computed font size h ere, allowing consumers to
321 // enable text zoom rather than Text Autosizing? See http://crbug.com/22 7545. 321 // enable text zoom rather than Text Autosizing? See http://crbug.com/22 7545.
322 return createFromDouble(style.specifiedFontSize()); 322 return createFromDouble(style.specifiedFontSize());
323 case CSSPropertyFontStretch: 323 case CSSPropertyFontStretch:
324 return createFromFontStretch(style.fontStretch()); 324 return createFromFontStretch(style.fontStretch());
325 case CSSPropertyFontWeight: 325 case CSSPropertyFontWeight:
326 return createFromFontWeight(style.fontWeight()); 326 return createFromFontWeight(style.fontWeight());
327 case CSSPropertyHeight: 327 case CSSPropertyHeight:
328 return createFromLength(style.height(), style); 328 return createFromLength(style.height(), style);
329 case CSSPropertyListStyleImage:
330 return createFromStyleImage(style.listStyleImage());
331 case CSSPropertyLeft: 329 case CSSPropertyLeft:
332 return createFromLength(style.left(), style); 330 return createFromLength(style.left(), style);
333 case CSSPropertyLetterSpacing: 331 case CSSPropertyLetterSpacing:
334 return createFromDouble(style.letterSpacing()); 332 return createFromDouble(style.letterSpacing());
335 case CSSPropertyLineHeight: 333 case CSSPropertyLineHeight:
336 return createFromLineHeight(style.specifiedLineHeight(), style); 334 return createFromLineHeight(style.specifiedLineHeight(), style);
337 case CSSPropertyMarginBottom: 335 case CSSPropertyMarginBottom:
338 return createFromLength(style.marginBottom(), style); 336 return createFromLength(style.marginBottom(), style);
339 case CSSPropertyMarginLeft: 337 case CSSPropertyMarginLeft:
340 return createFromLength(style.marginLeft(), style); 338 return createFromLength(style.marginLeft(), style);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 case CSSPropertyZIndex: 414 case CSSPropertyZIndex:
417 return createFromDouble(style.zIndex()); 415 return createFromDouble(style.zIndex());
418 default: 416 default:
419 ASSERT_NOT_REACHED(); 417 ASSERT_NOT_REACHED();
420 // This return value is to avoid a release crash if possible. 418 // This return value is to avoid a release crash if possible.
421 return AnimatableUnknown::create(nullptr); 419 return AnimatableUnknown::create(nullptr);
422 } 420 }
423 } 421 }
424 422
425 } // namespace blink 423 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/animation/css/CSSPropertyEquality.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698