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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // SVGStringList property implementations for SVGTests properties. | 42 // SVGStringList property implementations for SVGTests properties. |
43 // Inherits SVGAnimatedPropertyBase to enable XML attribute synchronization, but
this is never animated. | 43 // Inherits SVGAnimatedPropertyBase to enable XML attribute synchronization, but
this is never animated. |
44 class SVGStaticStringList final : public SVGAnimatedPropertyBase { | 44 class SVGStaticStringList final : public SVGAnimatedPropertyBase { |
45 public: | 45 public: |
46 static PassRefPtrWillBeRawPtr<SVGStaticStringList> create(SVGElement* contex
tElement, const QualifiedName& attributeName) | 46 static PassRefPtrWillBeRawPtr<SVGStaticStringList> create(SVGElement* contex
tElement, const QualifiedName& attributeName) |
47 { | 47 { |
48 return adoptRefWillBeNoop(new SVGStaticStringList(contextElement, attrib
uteName)); | 48 return adoptRefWillBeNoop(new SVGStaticStringList(contextElement, attrib
uteName)); |
49 } | 49 } |
50 | 50 |
51 virtual ~SVGStaticStringList(); | 51 ~SVGStaticStringList() override; |
52 | 52 |
53 // SVGAnimatedPropertyBase: | 53 // SVGAnimatedPropertyBase: |
54 virtual SVGPropertyBase* currentValueBase() override; | 54 SVGPropertyBase* currentValueBase() override; |
55 virtual bool isAnimating() const override; | 55 bool isAnimating() const override; |
56 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> createAnimatedValue() overri
de; | 56 PassRefPtrWillBeRawPtr<SVGPropertyBase> createAnimatedValue() override; |
57 virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) overr
ide; | 57 void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) override; |
58 virtual void animationEnded() override; | 58 void animationEnded() override; |
59 virtual bool needsSynchronizeAttribute() override; | 59 bool needsSynchronizeAttribute() override; |
60 | 60 |
61 void setBaseValueAsString(const String& value, SVGParsingError& parseError); | 61 void setBaseValueAsString(const String& value, SVGParsingError& parseError); |
62 | 62 |
63 SVGStringList* value() { return m_value.get(); } | 63 SVGStringList* value() { return m_value.get(); } |
64 SVGStringListTearOff* tearOff(); | 64 SVGStringListTearOff* tearOff(); |
65 | 65 |
66 DECLARE_VIRTUAL_TRACE(); | 66 DECLARE_VIRTUAL_TRACE(); |
67 | 67 |
68 private: | 68 private: |
69 SVGStaticStringList(SVGElement*, const QualifiedName&); | 69 SVGStaticStringList(SVGElement*, const QualifiedName&); |
70 | 70 |
71 RefPtrWillBeMember<SVGStringList> m_value; | 71 RefPtrWillBeMember<SVGStringList> m_value; |
72 RefPtrWillBeMember<SVGStringListTearOff> m_tearOff; | 72 RefPtrWillBeMember<SVGStringListTearOff> m_tearOff; |
73 }; | 73 }; |
74 | 74 |
75 } | 75 } |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |