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

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

Issue 1068073002: drop 'orphan' property (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix ojan's comments 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 case CSSPropertyMaxWidth: 347 case CSSPropertyMaxWidth:
348 return createFromLength(style.maxWidth(), style); 348 return createFromLength(style.maxWidth(), style);
349 case CSSPropertyMinHeight: 349 case CSSPropertyMinHeight:
350 return createFromLength(style.minHeight(), style); 350 return createFromLength(style.minHeight(), style);
351 case CSSPropertyMinWidth: 351 case CSSPropertyMinWidth:
352 return createFromLength(style.minWidth(), style); 352 return createFromLength(style.minWidth(), style);
353 case CSSPropertyObjectPosition: 353 case CSSPropertyObjectPosition:
354 return createFromLengthPoint(style.objectPosition(), style); 354 return createFromLengthPoint(style.objectPosition(), style);
355 case CSSPropertyOpacity: 355 case CSSPropertyOpacity:
356 return createFromDouble(style.opacity()); 356 return createFromDouble(style.opacity());
357 case CSSPropertyOrphans:
358 return createFromDouble(style.orphans());
359 case CSSPropertyOutlineColor: 357 case CSSPropertyOutlineColor:
360 return createFromColor(property, style); 358 return createFromColor(property, style);
361 case CSSPropertyOutlineOffset: 359 case CSSPropertyOutlineOffset:
362 return createFromDouble(style.outlineOffset()); 360 return createFromDouble(style.outlineOffset());
363 case CSSPropertyOutlineWidth: 361 case CSSPropertyOutlineWidth:
364 return createFromDouble(style.outlineWidth()); 362 return createFromDouble(style.outlineWidth());
365 case CSSPropertyPaddingBottom: 363 case CSSPropertyPaddingBottom:
366 return createFromLength(style.paddingBottom(), style); 364 return createFromLength(style.paddingBottom(), style);
367 case CSSPropertyPaddingLeft: 365 case CSSPropertyPaddingLeft:
368 return createFromLength(style.paddingLeft(), style); 366 return createFromLength(style.paddingLeft(), style);
(...skipping 47 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

Powered by Google App Engine
This is Rietveld 408576698