| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 lastCharacter = currentCharacter; | 98 lastCharacter = currentCharacter; |
| 99 ++atCharacter; | 99 ++atCharacter; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderBoxMod
elObject& start, UChar& lastCharacter) | 103 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderBoxMod
elObject& start, UChar& lastCharacter) |
| 104 { | 104 { |
| 105 ASSERT(!start.isSVGText() || m_textPositions.isEmpty()); | 105 ASSERT(!start.isSVGText() || m_textPositions.isEmpty()); |
| 106 | 106 |
| 107 for (RenderObject* child = start.slowFirstChild(); child; child = child->nex
tSibling()) { | 107 for (LayoutObject* child = start.slowFirstChild(); child; child = child->nex
tSibling()) { |
| 108 if (child->isSVGInlineText()) { | 108 if (child->isSVGInlineText()) { |
| 109 processRenderSVGInlineText(toRenderSVGInlineText(child), m_textLengt
h, lastCharacter); | 109 processRenderSVGInlineText(toRenderSVGInlineText(child), m_textLengt
h, lastCharacter); |
| 110 continue; | 110 continue; |
| 111 } | 111 } |
| 112 | 112 |
| 113 if (!child->isSVGInline()) | 113 if (!child->isSVGInline()) |
| 114 continue; | 114 continue; |
| 115 | 115 |
| 116 RenderSVGInline& inlineChild = toRenderSVGInline(*child); | 116 RenderSVGInline& inlineChild = toRenderSVGInline(*child); |
| 117 SVGTextPositioningElement* element = SVGTextPositioningElement::elementF
romRenderer(inlineChild); | 117 SVGTextPositioningElement* element = SVGTextPositioningElement::elementF
romRenderer(inlineChild); |
| (...skipping 108 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 |