| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/svg/SVGStaticStringList.h" | 32 #include "core/svg/SVGStaticStringList.h" |
| 33 | 33 |
| 34 #include "core/svg/SVGElement.h" |
| 35 |
| 34 namespace blink { | 36 namespace blink { |
| 35 | 37 |
| 36 SVGStaticStringList::SVGStaticStringList(SVGElement* contextElement, const Quali
fiedName& attributeName) | 38 SVGStaticStringList::SVGStaticStringList(SVGElement* contextElement, const Quali
fiedName& attributeName) |
| 37 : SVGAnimatedPropertyBase(AnimatedUnknown, contextElement, attributeName) | 39 : SVGAnimatedPropertyBase(AnimatedUnknown, contextElement, attributeName) |
| 38 , m_value(SVGStringList::create()) | 40 , m_value(SVGStringList::create()) |
| 39 { | 41 { |
| 40 ASSERT(contextElement); | 42 ASSERT(contextElement); |
| 41 } | 43 } |
| 42 | 44 |
| 43 SVGStaticStringList::~SVGStaticStringList() | 45 SVGStaticStringList::~SVGStaticStringList() |
| 44 { | 46 { |
| 45 } | 47 } |
| 46 | 48 |
| 49 void SVGStaticStringList::trace(Visitor* visitor) |
| 50 { |
| 51 visitor->trace(m_value); |
| 52 visitor->trace(m_tearOff); |
| 53 SVGAnimatedPropertyBase::trace(visitor); |
| 54 } |
| 55 |
| 47 SVGPropertyBase* SVGStaticStringList::currentValueBase() | 56 SVGPropertyBase* SVGStaticStringList::currentValueBase() |
| 48 { | 57 { |
| 49 return m_value.get(); | 58 return m_value.get(); |
| 50 } | 59 } |
| 51 | 60 |
| 52 bool SVGStaticStringList::isAnimating() const | 61 bool SVGStaticStringList::isAnimating() const |
| 53 { | 62 { |
| 54 return false; | 63 return false; |
| 55 } | 64 } |
| 56 | 65 |
| 57 PassRefPtr<SVGPropertyBase> SVGStaticStringList::createAnimatedValue() | 66 PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGStaticStringList::createAnimatedValue
() |
| 58 { | 67 { |
| 59 ASSERT_NOT_REACHED(); | 68 ASSERT_NOT_REACHED(); |
| 60 return nullptr; | 69 return nullptr; |
| 61 } | 70 } |
| 62 | 71 |
| 63 void SVGStaticStringList::setAnimatedValue(PassRefPtr<SVGPropertyBase>) | 72 void SVGStaticStringList::setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBas
e>) |
| 64 { | 73 { |
| 65 ASSERT_NOT_REACHED(); | 74 ASSERT_NOT_REACHED(); |
| 66 } | 75 } |
| 67 | 76 |
| 68 void SVGStaticStringList::animationEnded() | 77 void SVGStaticStringList::animationEnded() |
| 69 { | 78 { |
| 70 ASSERT_NOT_REACHED(); | 79 ASSERT_NOT_REACHED(); |
| 71 } | 80 } |
| 72 | 81 |
| 73 bool SVGStaticStringList::needsSynchronizeAttribute() | 82 bool SVGStaticStringList::needsSynchronizeAttribute() |
| (...skipping 13 matching lines...) Expand all Loading... |
| 87 { | 96 { |
| 88 TrackExceptionState es; | 97 TrackExceptionState es; |
| 89 | 98 |
| 90 m_value->setValueAsString(value, es); | 99 m_value->setValueAsString(value, es); |
| 91 | 100 |
| 92 if (es.hadException()) | 101 if (es.hadException()) |
| 93 parseError = ParsingAttributeFailedError; | 102 parseError = ParsingAttributeFailedError; |
| 94 } | 103 } |
| 95 | 104 |
| 96 } | 105 } |
| OLD | NEW |