OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 SVGPropertyBase* to, | 96 SVGPropertyBase* to, |
97 SVGPropertyBase* toAtEndOfDurationValue, | 97 SVGPropertyBase* toAtEndOfDurationValue, |
98 SVGElement* contextElement) override; | 98 SVGElement* contextElement) override; |
99 float calculateDistance(SVGPropertyBase* to, | 99 float calculateDistance(SVGPropertyBase* to, |
100 SVGElement* contextElement) override; | 100 SVGElement* contextElement) override; |
101 | 101 |
102 static AnimatedPropertyType classType() { | 102 static AnimatedPropertyType classType() { |
103 return AnimatedPreserveAspectRatio; | 103 return AnimatedPreserveAspectRatio; |
104 } | 104 } |
105 | 105 |
| 106 void setDefault(); |
| 107 |
106 private: | 108 private: |
107 SVGPreserveAspectRatio(); | 109 SVGPreserveAspectRatio(); |
108 | 110 |
109 void setDefault(); | |
110 template <typename CharType> | 111 template <typename CharType> |
111 SVGParsingError parseInternal(const CharType*& ptr, | 112 SVGParsingError parseInternal(const CharType*& ptr, |
112 const CharType* end, | 113 const CharType* end, |
113 bool validate); | 114 bool validate); |
114 | 115 |
115 SVGPreserveAspectRatioType m_align; | 116 SVGPreserveAspectRatioType m_align; |
116 SVGMeetOrSliceType m_meetOrSlice; | 117 SVGMeetOrSliceType m_meetOrSlice; |
117 }; | 118 }; |
118 | 119 |
119 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPreserveAspectRatio); | 120 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPreserveAspectRatio); |
120 | 121 |
121 } // namespace blink | 122 } // namespace blink |
122 | 123 |
123 #endif // SVGPreserveAspectRatio_h | 124 #endif // SVGPreserveAspectRatio_h |
OLD | NEW |