| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 case CSSPropertyBottom: | 175 case CSSPropertyBottom: |
| 176 return createFromLength(style->bottom(), style); | 176 return createFromLength(style->bottom(), style); |
| 177 case CSSPropertyClip: | 177 case CSSPropertyClip: |
| 178 return createFromLengthBox(style->clip(), style); | 178 return createFromLengthBox(style->clip(), style); |
| 179 case CSSPropertyColor: | 179 case CSSPropertyColor: |
| 180 return createFromColor(property, style); | 180 return createFromColor(property, style); |
| 181 case CSSPropertyFillOpacity: | 181 case CSSPropertyFillOpacity: |
| 182 return createFromDouble(style->fillOpacity()); | 182 return createFromDouble(style->fillOpacity()); |
| 183 case CSSPropertyFill: | 183 case CSSPropertyFill: |
| 184 return AnimatableSVGPaint::create(style->svgStyle()->fillPaintType(), st
yle->svgStyle()->fillPaintColor(), style->svgStyle()->fillPaintUri()); | 184 return AnimatableSVGPaint::create(style->svgStyle()->fillPaintType(), st
yle->svgStyle()->fillPaintColor(), style->svgStyle()->fillPaintUri()); |
| 185 case CSSPropertyFloodOpacity: |
| 186 return createFromDouble(style->floodOpacity()); |
| 185 case CSSPropertyHeight: | 187 case CSSPropertyHeight: |
| 186 return createFromLength(style->height(), style); | 188 return createFromLength(style->height(), style); |
| 187 case CSSPropertyKerning: | 189 case CSSPropertyKerning: |
| 188 return AnimatableSVGLength::create(style->kerning()); | 190 return AnimatableSVGLength::create(style->kerning()); |
| 189 case CSSPropertyListStyleImage: | 191 case CSSPropertyListStyleImage: |
| 190 return AnimatableImage::create(style->listStyleImage()); | 192 return AnimatableImage::create(style->listStyleImage()); |
| 191 case CSSPropertyLeft: | 193 case CSSPropertyLeft: |
| 192 return createFromLength(style->left(), style); | 194 return createFromLength(style->left(), style); |
| 193 case CSSPropertyLetterSpacing: | 195 case CSSPropertyLetterSpacing: |
| 194 return createFromDouble(style->letterSpacing()); | 196 return createFromDouble(style->letterSpacing()); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 case CSSPropertyZoom: | 291 case CSSPropertyZoom: |
| 290 return createFromDouble(style->zoom()); | 292 return createFromDouble(style->zoom()); |
| 291 default: | 293 default: |
| 292 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert
y), "Web Animations not yet implemented: Create AnimatableValue from render styl
e: %s", getPropertyNameString(property).utf8().data()); | 294 RELEASE_ASSERT_WITH_MESSAGE(!CSSAnimations::isAnimatableProperty(propert
y), "Web Animations not yet implemented: Create AnimatableValue from render styl
e: %s", getPropertyNameString(property).utf8().data()); |
| 293 ASSERT_NOT_REACHED(); | 295 ASSERT_NOT_REACHED(); |
| 294 return 0; | 296 return 0; |
| 295 } | 297 } |
| 296 } | 298 } |
| 297 | 299 |
| 298 } // namespace WebCore | 300 } // namespace WebCore |
| OLD | NEW |