| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 lastCharacter = currentCharacter; | 99 lastCharacter = currentCharacter; |
| 100 ++atCharacter; | 100 ++atCharacter; |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderObject
* start, UChar& lastCharacter) | 104 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderObject
* start, UChar& lastCharacter) |
| 105 { | 105 { |
| 106 ASSERT(!start->isSVGText() || m_textPositions.isEmpty()); | 106 ASSERT(!start->isSVGText() || m_textPositions.isEmpty()); |
| 107 | 107 |
| 108 for (RenderObject* child = start->firstChild(); child; child = child->nextSi
bling()) { | 108 for (RenderObject* child = start->slowFirstChild(); child; child = child->ne
xtSibling()) { |
| 109 if (child->isSVGInlineText()) { | 109 if (child->isSVGInlineText()) { |
| 110 processRenderSVGInlineText(toRenderSVGInlineText(child), m_textLengt
h, lastCharacter); | 110 processRenderSVGInlineText(toRenderSVGInlineText(child), m_textLengt
h, lastCharacter); |
| 111 continue; | 111 continue; |
| 112 } | 112 } |
| 113 | 113 |
| 114 if (!child->isSVGInline()) | 114 if (!child->isSVGInline()) |
| 115 continue; | 115 continue; |
| 116 | 116 |
| 117 SVGTextPositioningElement* element = SVGTextPositioningElement::elementF
romRenderer(child); | 117 SVGTextPositioningElement* element = SVGTextPositioningElement::elementF
romRenderer(child); |
| 118 unsigned atPosition = m_textPositions.size(); | 118 unsigned atPosition = m_textPositions.size(); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |