| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 document()->updateLayoutIgnorePendingStylesheets(); | 142 document()->updateLayoutIgnorePendingStylesheets(); |
| 143 | 143 |
| 144 if (charnum > getNumberOfChars()) { | 144 if (charnum > getNumberOfChars()) { |
| 145 ec = IndexSizeError; | 145 ec = IndexSizeError; |
| 146 return FloatPoint(); | 146 return FloatPoint(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 return SVGTextQuery(renderer()).endPositionOfCharacter(charnum); | 149 return SVGTextQuery(renderer()).endPositionOfCharacter(charnum); |
| 150 } | 150 } |
| 151 | 151 |
| 152 FloatRect SVGTextContentElement::getExtentOfChar(unsigned charnum, ExceptionCode
& ec) | 152 SVGRect SVGTextContentElement::getExtentOfChar(unsigned charnum, ExceptionCode&
ec) |
| 153 { | 153 { |
| 154 document()->updateLayoutIgnorePendingStylesheets(); | 154 document()->updateLayoutIgnorePendingStylesheets(); |
| 155 | 155 |
| 156 if (charnum > getNumberOfChars()) { | 156 if (charnum > getNumberOfChars()) { |
| 157 ec = IndexSizeError; | 157 ec = IndexSizeError; |
| 158 return FloatRect(); | 158 return SVGRect(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 return SVGTextQuery(renderer()).extentOfCharacter(charnum); | 161 return SVGTextQuery(renderer()).extentOfCharacter(charnum); |
| 162 } | 162 } |
| 163 | 163 |
| 164 float SVGTextContentElement::getRotationOfChar(unsigned charnum, ExceptionCode&
ec) | 164 float SVGTextContentElement::getRotationOfChar(unsigned charnum, ExceptionCode&
ec) |
| 165 { | 165 { |
| 166 document()->updateLayoutIgnorePendingStylesheets(); | 166 document()->updateLayoutIgnorePendingStylesheets(); |
| 167 | 167 |
| 168 if (charnum > getNumberOfChars()) { | 168 if (charnum > getNumberOfChars()) { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 SVGElement* element = toSVGElement(renderer->node()); | 298 SVGElement* element = toSVGElement(renderer->node()); |
| 299 ASSERT(element); | 299 ASSERT(element); |
| 300 | 300 |
| 301 if (!element->isTextContent()) | 301 if (!element->isTextContent()) |
| 302 return 0; | 302 return 0; |
| 303 | 303 |
| 304 return toSVGTextContentElement(element); | 304 return toSVGTextContentElement(element); |
| 305 } | 305 } |
| 306 | 306 |
| 307 } | 307 } |
| OLD | NEW |