| OLD | NEW |
| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 { | 147 { |
| 148 RefPtrWillBeRawPtr<SVGLength> length = toAnimatableSVGLength(value)->toSVGLe
ngth(); | 148 RefPtrWillBeRawPtr<SVGLength> length = toAnimatableSVGLength(value)->toSVGLe
ngth(); |
| 149 if (length->valueInSpecifiedUnits() < 0) | 149 if (length->valueInSpecifiedUnits() < 0) |
| 150 length->setValueInSpecifiedUnits(0); | 150 length->setValueInSpecifiedUnits(0); |
| 151 return length.release(); | 151 return length.release(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 template <CSSPropertyID property> | 154 template <CSSPropertyID property> |
| 155 void setOnFillLayers(FillLayer& fillLayers, const AnimatableValue* value, StyleR
esolverState& state) | 155 void setOnFillLayers(FillLayer& fillLayers, const AnimatableValue* value, StyleR
esolverState& state) |
| 156 { | 156 { |
| 157 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >& values = toAni
matableRepeatable(value)->values(); | 157 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>>& values = toAnim
atableRepeatable(value)->values(); |
| 158 ASSERT(!values.isEmpty()); | 158 ASSERT(!values.isEmpty()); |
| 159 FillLayer* fillLayer = &fillLayers; | 159 FillLayer* fillLayer = &fillLayers; |
| 160 FillLayer* prev = 0; | 160 FillLayer* prev = 0; |
| 161 for (size_t i = 0; i < values.size(); ++i) { | 161 for (size_t i = 0; i < values.size(); ++i) { |
| 162 if (!fillLayer) | 162 if (!fillLayer) |
| 163 fillLayer = prev->ensureNext(); | 163 fillLayer = prev->ensureNext(); |
| 164 const AnimatableValue* layerValue = values[i].get(); | 164 const AnimatableValue* layerValue = values[i].get(); |
| 165 switch (property) { | 165 switch (property) { |
| 166 case CSSPropertyBackgroundImage: | 166 case CSSPropertyBackgroundImage: |
| 167 case CSSPropertyWebkitMaskImage: | 167 case CSSPropertyWebkitMaskImage: |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 case CSSPropertyRy: | 638 case CSSPropertyRy: |
| 639 style->setRy(animatableValueToLength(value, state)); | 639 style->setRy(animatableValueToLength(value, state)); |
| 640 return; | 640 return; |
| 641 | 641 |
| 642 default: | 642 default: |
| 643 ASSERT_NOT_REACHED(); | 643 ASSERT_NOT_REACHED(); |
| 644 } | 644 } |
| 645 } | 645 } |
| 646 | 646 |
| 647 } // namespace blink | 647 } // namespace blink |
| OLD | NEW |