| OLD | NEW |
| 1 #include "core/animation/VisibilityStyleInterpolation.h" | 1 #include "core/animation/VisibilityStyleInterpolation.h" |
| 2 | 2 |
| 3 #include "core/css/CSSPrimitiveValue.h" | 3 #include "core/css/CSSPrimitiveValue.h" |
| 4 #include "core/css/resolver/StyleBuilder.h" | 4 #include "core/css/resolver/StyleBuilder.h" |
| 5 | 5 |
| 6 namespace blink { | 6 namespace blink { |
| 7 | 7 |
| 8 bool VisibilityStyleInterpolation::canCreateFrom(const CSSValue& value) | 8 bool VisibilityStyleInterpolation::canCreateFrom(const CSSValue& value) |
| 9 { | 9 { |
| 10 return value.isPrimitiveValue() && toCSSPrimitiveValue(value).isValueID(); | 10 return value.isPrimitiveValue() && toCSSPrimitiveValue(value).isValueID(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 if (number->value() > 0) | 36 if (number->value() > 0) |
| 37 return CSSPrimitiveValue::createIdentifier(CSSValueVisible); | 37 return CSSPrimitiveValue::createIdentifier(CSSValueVisible); |
| 38 return CSSPrimitiveValue::createIdentifier(notVisible); | 38 return CSSPrimitiveValue::createIdentifier(notVisible); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void VisibilityStyleInterpolation::apply(StyleResolverState& state) const | 41 void VisibilityStyleInterpolation::apply(StyleResolverState& state) const |
| 42 { | 42 { |
| 43 StyleBuilder::applyProperty(m_id, state, interpolableValueToVisibility(m_cac
hedValue.get(), m_notVisible).get()); | 43 StyleBuilder::applyProperty(m_id, state, interpolableValueToVisibility(m_cac
hedValue.get(), m_notVisible).get()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 } | 46 } // namespace blink |
| OLD | NEW |