OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 return; | 188 return; |
189 | 189 |
190 RenderSVGInlineText* textRenderer = toRenderSVGInlineText(this->textRenderer
()); | 190 RenderSVGInlineText* textRenderer = toRenderSVGInlineText(this->textRenderer
()); |
191 ASSERT(textRenderer); | 191 ASSERT(textRenderer); |
192 if (!textShouldBePainted(textRenderer)) | 192 if (!textShouldBePainted(textRenderer)) |
193 return; | 193 return; |
194 | 194 |
195 RenderStyle* style = parentRenderer->style(); | 195 RenderStyle* style = parentRenderer->style(); |
196 ASSERT(style); | 196 ASSERT(style); |
197 | 197 |
198 const SVGRenderStyle* svgStyle = style->svgStyle(); | |
199 ASSERT(svgStyle); | |
200 | |
201 RenderStyle* selectionStyle = style; | 198 RenderStyle* selectionStyle = style; |
202 if (hasSelection) { | 199 if (hasSelection) { |
203 selectionStyle = parentRenderer->getCachedPseudoStyle(SELECTION); | 200 selectionStyle = parentRenderer->getCachedPseudoStyle(SELECTION); |
204 if (!selectionStyle) | 201 if (!selectionStyle) |
205 selectionStyle = style; | 202 selectionStyle = style; |
206 } | 203 } |
207 | 204 |
208 int startPosition, endPosition; | 205 int startPosition, endPosition; |
209 selectionStartEnd(startPosition, endPosition); | 206 selectionStartEnd(startPosition, endPosition); |
210 | 207 |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 return true; | 739 return true; |
743 } | 740 } |
744 } | 741 } |
745 } | 742 } |
746 return false; | 743 return false; |
747 } | 744 } |
748 | 745 |
749 } // namespace WebCore | 746 } // namespace WebCore |
750 | 747 |
751 #endif | 748 #endif |
OLD | NEW |