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

Side by Side Diff: sky/engine/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 703563002: Remove shape-outside. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 return; 473 return;
474 case CSSPropertyPerspective: 474 case CSSPropertyPerspective:
475 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble ())); 475 style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble ()));
476 return; 476 return;
477 case CSSPropertyPerspectiveOrigin: { 477 case CSSPropertyPerspectiveOrigin: {
478 const AnimatableLengthPoint* animatableLengthPoint = toAnimatableLengthP oint(value); 478 const AnimatableLengthPoint* animatableLengthPoint = toAnimatableLengthP oint(value);
479 style->setPerspectiveOriginX(animatableValueToLength(animatableLengthPoi nt->x(), state)); 479 style->setPerspectiveOriginX(animatableValueToLength(animatableLengthPoi nt->x(), state));
480 style->setPerspectiveOriginY(animatableValueToLength(animatableLengthPoi nt->y(), state)); 480 style->setPerspectiveOriginY(animatableValueToLength(animatableLengthPoi nt->y(), state));
481 return; 481 return;
482 } 482 }
483 case CSSPropertyShapeOutside:
484 style->setShapeOutside(toAnimatableShapeValue(value)->shapeValue());
485 return;
486 case CSSPropertyShapeMargin:
487 style->setShapeMargin(animatableValueToLength(value, state, ValueRangeNo nNegative));
488 return;
489 case CSSPropertyShapeImageThreshold:
490 style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)-> toDouble(), 0, 1));
491 return;
492 case CSSPropertyWebkitTextStrokeColor: 483 case CSSPropertyWebkitTextStrokeColor:
493 style->setTextStrokeColor(toAnimatableColor(value)->color()); 484 style->setTextStrokeColor(toAnimatableColor(value)->color());
494 return; 485 return;
495 case CSSPropertyTransform: { 486 case CSSPropertyTransform: {
496 const TransformOperations& operations = toAnimatableTransform(value)->tr ansformOperations(); 487 const TransformOperations& operations = toAnimatableTransform(value)->tr ansformOperations();
497 // FIXME: This normalization (handling of 'none') should be performed at input in AnimatableValueFactory. 488 // FIXME: This normalization (handling of 'none') should be performed at input in AnimatableValueFactory.
498 style->setTransform(operations.size() ? operations : TransformOperations (true)); 489 style->setTransform(operations.size() ? operations : TransformOperations (true));
499 return; 490 return;
500 } 491 }
501 case CSSPropertyTransformOrigin: { 492 case CSSPropertyTransformOrigin: {
(...skipping 20 matching lines...) Expand all
522 return; 513 return;
523 case CSSPropertyZoom: 514 case CSSPropertyZoom:
524 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::denorm_min())); 515 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::denorm_min()));
525 return; 516 return;
526 default: 517 default:
527 ASSERT_NOT_REACHED(); 518 ASSERT_NOT_REACHED();
528 } 519 }
529 } 520 }
530 521
531 } // namespace blink 522 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/CSSPropertyParser.cpp ('k') | sky/engine/core/css/resolver/StyleResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698