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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 SVGElement* contextElement() | 76 SVGElement* contextElement() |
77 { | 77 { |
78 return m_contextElement; | 78 return m_contextElement; |
79 } | 79 } |
80 | 80 |
81 const QualifiedName& attributeName() | 81 const QualifiedName& attributeName() |
82 { | 82 { |
83 return m_attributeName; | 83 return m_attributeName; |
84 } | 84 } |
85 | 85 |
86 void makeTearOff(SVGElement* contextElement, const QualifiedName& attributeN ame) | |
fs
2014/06/11 08:42:23
I can see where "makeTearOff" comes from, but it m
kouhei (in TOK)
2014/06/12 04:25:28
Yes this isn't a very good name. Trying "attachToS
fs
2014/06/12 08:32:23
Naming is hard, but this new shade is certainly an
| |
87 { | |
88 ASSERT(!isImmutable()); | |
89 ASSERT(contextElement); | |
90 ASSERT(attributeName != nullQName()); | |
91 m_contextElement = contextElement; | |
92 m_attributeName = attributeName; | |
93 } | |
94 | |
86 virtual AnimatedPropertyType type() const = 0; | 95 virtual AnimatedPropertyType type() const = 0; |
87 | 96 |
88 protected: | 97 protected: |
89 SVGPropertyTearOffBase(SVGElement* contextElement, PropertyIsAnimValType pro pertyIsAnimVal, const QualifiedName& attributeName = nullQName()) | 98 SVGPropertyTearOffBase(SVGElement* contextElement, PropertyIsAnimValType pro pertyIsAnimVal, const QualifiedName& attributeName = nullQName()) |
90 : m_contextElement(contextElement) | 99 : m_contextElement(contextElement) |
91 , m_propertyIsAnimVal(propertyIsAnimVal) | 100 , m_propertyIsAnimVal(propertyIsAnimVal) |
92 , m_isReadOnlyProperty(false) | 101 , m_isReadOnlyProperty(false) |
93 , m_attributeName(attributeName) | 102 , m_attributeName(attributeName) |
94 { | 103 { |
95 } | 104 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 ASSERT(m_target); | 138 ASSERT(m_target); |
130 } | 139 } |
131 | 140 |
132 private: | 141 private: |
133 RefPtr<Property> m_target; | 142 RefPtr<Property> m_target; |
134 }; | 143 }; |
135 | 144 |
136 } | 145 } |
137 | 146 |
138 #endif // SVGPropertyTearOff_h | 147 #endif // SVGPropertyTearOff_h |
OLD | NEW |