| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 PassRefPtrWillBeRawPtr<SVGString> clone() const { return create(m_value); } | 55 PassRefPtrWillBeRawPtr<SVGString> clone() const { return create(m_value); } |
| 56 PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String& valu
e) const override | 56 PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String& valu
e) const override |
| 57 { | 57 { |
| 58 return create(value); | 58 return create(value); |
| 59 } | 59 } |
| 60 | 60 |
| 61 String valueAsString() const override { return m_value; } | 61 String valueAsString() const override { return m_value; } |
| 62 SVGParsingError setValueAsString(const String& value) | 62 SVGParsingError setValueAsString(const String& value) |
| 63 { | 63 { |
| 64 m_value = value; | 64 m_value = value; |
| 65 return NoError; | 65 return SVGParseStatus::NoError; |
| 66 } | 66 } |
| 67 | 67 |
| 68 void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) override; | 68 void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) override; |
| 69 void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned
repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawP
tr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDuratio
nValue, SVGElement*) override; | 69 void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned
repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawP
tr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDuratio
nValue, SVGElement*) override; |
| 70 float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGEleme
nt*) override; | 70 float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGEleme
nt*) override; |
| 71 | 71 |
| 72 const String& value() const { return m_value; } | 72 const String& value() const { return m_value; } |
| 73 void setValue(const String& value) { m_value = value; } | 73 void setValue(const String& value) { m_value = value; } |
| 74 | 74 |
| 75 static AnimatedPropertyType classType() { return AnimatedString; } | 75 static AnimatedPropertyType classType() { return AnimatedString; } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 87 } | 87 } |
| 88 | 88 |
| 89 String m_value; | 89 String m_value; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGString); | 92 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGString); |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // SVGString_h | 96 #endif // SVGString_h |
| OLD | NEW |