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

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

Issue 1078943002: remove 'widows' property because paged media support is gone so this does nothing now (Closed) Base URL: https://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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 createFromLength(style.perspectiveOriginY(), style)); 392 createFromLength(style.perspectiveOriginY(), style));
393 case CSSPropertyWebkitTextStrokeColor: 393 case CSSPropertyWebkitTextStrokeColor:
394 return createFromColor(property, style); 394 return createFromColor(property, style);
395 case CSSPropertyTransform: 395 case CSSPropertyTransform:
396 return AnimatableTransform::create(style.transform()); 396 return AnimatableTransform::create(style.transform());
397 case CSSPropertyTransformOrigin: 397 case CSSPropertyTransformOrigin:
398 return AnimatableLengthPoint3D::create( 398 return AnimatableLengthPoint3D::create(
399 createFromLength(style.transformOriginX(), style), 399 createFromLength(style.transformOriginX(), style),
400 createFromLength(style.transformOriginY(), style), 400 createFromLength(style.transformOriginY(), style),
401 createFromDouble(style.transformOriginZ())); 401 createFromDouble(style.transformOriginZ()));
402 case CSSPropertyWidows:
403 return createFromDouble(style.widows());
404 case CSSPropertyWidth: 402 case CSSPropertyWidth:
405 return createFromLength(style.width(), style); 403 return createFromLength(style.width(), style);
406 case CSSPropertyWordSpacing: 404 case CSSPropertyWordSpacing:
407 return createFromDouble(style.wordSpacing()); 405 return createFromDouble(style.wordSpacing());
408 case CSSPropertyVerticalAlign: 406 case CSSPropertyVerticalAlign:
409 if (style.verticalAlign() == LENGTH) 407 if (style.verticalAlign() == LENGTH)
410 return createFromLength(style.verticalAlignLength(), style); 408 return createFromLength(style.verticalAlignLength(), style);
411 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign())); 409 return AnimatableUnknown::create(CSSPrimitiveValue::create(style.vertica lAlign()));
412 case CSSPropertyZIndex: 410 case CSSPropertyZIndex:
413 return createFromDouble(style.zIndex()); 411 return createFromDouble(style.zIndex());
414 default: 412 default:
415 ASSERT_NOT_REACHED(); 413 ASSERT_NOT_REACHED();
416 // This return value is to avoid a release crash if possible. 414 // This return value is to avoid a release crash if possible.
417 return AnimatableUnknown::create(nullptr); 415 return AnimatableUnknown::create(nullptr);
418 } 416 }
419 } 417 }
420 418
421 } // namespace blink 419 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698