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

Side by Side Diff: sky/engine/core/css/resolver/AnimatedStyleBuilder.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
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return; 340 return;
341 case CSSPropertyLeft: 341 case CSSPropertyLeft:
342 style->setLeft(animatableValueToLength(value, state)); 342 style->setLeft(animatableValueToLength(value, state));
343 return; 343 return;
344 case CSSPropertyLineHeight: 344 case CSSPropertyLineHeight:
345 if (value->isLength()) 345 if (value->isLength())
346 style->setLineHeight(animatableValueToLength(value, state, ValueRang eNonNegative)); 346 style->setLineHeight(animatableValueToLength(value, state, ValueRang eNonNegative));
347 else 347 else
348 style->setLineHeight(Length(clampTo<float>(toAnimatableDouble(value) ->toDouble(), 0), Percent)); 348 style->setLineHeight(Length(clampTo<float>(toAnimatableDouble(value) ->toDouble(), 0), Percent));
349 return; 349 return;
350 case CSSPropertyListStyleImage:
351 style->setListStyleImage(state.styleImage(property, toAnimatableImage(va lue)->toCSSValue()));
352 return;
353 case CSSPropertyLetterSpacing: 350 case CSSPropertyLetterSpacing:
354 style->setLetterSpacing(clampTo<float>(toAnimatableDouble(value)->toDoub le())); 351 style->setLetterSpacing(clampTo<float>(toAnimatableDouble(value)->toDoub le()));
355 return; 352 return;
356 case CSSPropertyMarginBottom: 353 case CSSPropertyMarginBottom:
357 style->setMarginBottom(animatableValueToLength(value, state)); 354 style->setMarginBottom(animatableValueToLength(value, state));
358 return; 355 return;
359 case CSSPropertyMarginLeft: 356 case CSSPropertyMarginLeft:
360 style->setMarginLeft(animatableValueToLength(value, state)); 357 style->setMarginLeft(animatableValueToLength(value, state));
361 return; 358 return;
362 case CSSPropertyMarginRight: 359 case CSSPropertyMarginRight:
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 return; 474 return;
478 case CSSPropertyZIndex: 475 case CSSPropertyZIndex:
479 style->setZIndex(animatableValueRoundClampTo<unsigned>(value)); 476 style->setZIndex(animatableValueRoundClampTo<unsigned>(value));
480 return; 477 return;
481 default: 478 default:
482 ASSERT_NOT_REACHED(); 479 ASSERT_NOT_REACHED();
483 } 480 }
484 } 481 }
485 482
486 } // namespace blink 483 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/CSSPropertyParser.cpp ('k') | sky/engine/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698