OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 if (dyList) | 172 if (dyList) |
173 data.dy = dyList->at(i)->value(lengthContext); | 173 data.dy = dyList->at(i)->value(lengthContext); |
174 if (rotateList) { | 174 if (rotateList) { |
175 data.rotate = rotateList->at(i)->value(); | 175 data.rotate = rotateList->at(i)->value(); |
176 lastRotation = data.rotate; | 176 lastRotation = data.rotate; |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po
sition) | 180 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po
sition) |
181 { | 181 { |
182 RefPtr<SVGLengthList> xList = position.element->x()->currentValue(); | 182 RefPtrWillBeRawPtr<SVGLengthList> xList = position.element->x()->currentValu
e(); |
183 RefPtr<SVGLengthList> yList = position.element->y()->currentValue(); | 183 RefPtrWillBeRawPtr<SVGLengthList> yList = position.element->y()->currentValu
e(); |
184 RefPtr<SVGLengthList> dxList = position.element->dx()->currentValue(); | 184 RefPtrWillBeRawPtr<SVGLengthList> dxList = position.element->dx()->currentVa
lue(); |
185 RefPtr<SVGLengthList> dyList = position.element->dy()->currentValue(); | 185 RefPtrWillBeRawPtr<SVGLengthList> dyList = position.element->dy()->currentVa
lue(); |
186 RefPtr<SVGNumberList> rotateList = position.element->rotate()->currentValue(
); | 186 RefPtrWillBeRawPtr<SVGNumberList> rotateList = position.element->rotate()->c
urrentValue(); |
187 | 187 |
188 unsigned xListSize = xList->length(); | 188 unsigned xListSize = xList->length(); |
189 unsigned yListSize = yList->length(); | 189 unsigned yListSize = yList->length(); |
190 unsigned dxListSize = dxList->length(); | 190 unsigned dxListSize = dxList->length(); |
191 unsigned dyListSize = dyList->length(); | 191 unsigned dyListSize = dyList->length(); |
192 unsigned rotateListSize = rotateList->length(); | 192 unsigned rotateListSize = rotateList->length(); |
193 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz
e) | 193 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz
e) |
194 return; | 194 return; |
195 | 195 |
196 float lastRotation = SVGTextLayoutAttributes::emptyValue(); | 196 float lastRotation = SVGTextLayoutAttributes::emptyValue(); |
(...skipping 29 matching lines...) Expand all Loading... |
226 data.rotate = lastRotation; | 226 data.rotate = lastRotation; |
227 m_characterDataMap.set(position.start + i + 1, data); | 227 m_characterDataMap.set(position.start + i + 1, data); |
228 continue; | 228 continue; |
229 } | 229 } |
230 | 230 |
231 it->value.rotate = lastRotation; | 231 it->value.rotate = lastRotation; |
232 } | 232 } |
233 } | 233 } |
234 | 234 |
235 } | 235 } |
OLD | NEW |