OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
3 * | 3 * |
4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
5 * (C) 2006 Apple Computer Inc. | 5 * (C) 2006 Apple Computer Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 RenderObject* object = rootBox ? rootBox->object() : 0; | 45 RenderObject* object = rootBox ? rootBox->object() : 0; |
46 | 46 |
47 if (!object) | 47 if (!object) |
48 return; | 48 return; |
49 | 49 |
50 int xRef = object->xPos() + xPos(); | 50 int xRef = object->xPos() + xPos(); |
51 int yRef = object->yPos() + yPos(); | 51 int yRef = object->yPos() + yPos(); |
52 | 52 |
53 for (InlineRunBox* curr = firstBox; curr; curr = curr->nextLineBox()) { | 53 for (InlineRunBox* curr = firstBox; curr; curr = curr->nextLineBox()) { |
54 FloatRect rect(xRef + curr->xPos(), yRef + curr->yPos(), curr->width(),
curr->height()); | 54 FloatRect rect(xRef + curr->xPos(), yRef + curr->yPos(), curr->width(),
curr->height()); |
| 55 // FIXME: broken with CSS transforms |
55 rects.append(enclosingIntRect(absoluteTransform().mapRect(rect))); | 56 rects.append(enclosingIntRect(absoluteTransform().mapRect(rect))); |
56 } | 57 } |
57 } | 58 } |
58 | 59 |
| 60 void RenderSVGTSpan::absoluteQuads(Vector<FloatQuad>& quads, bool topLevel) |
| 61 { |
| 62 InlineRunBox* firstBox = firstLineBox(); |
| 63 |
| 64 SVGRootInlineBox* rootBox = firstBox ? static_cast<SVGInlineTextBox*>(firstB
ox)->svgRootInlineBox() : 0; |
| 65 RenderObject* object = rootBox ? rootBox->object() : 0; |
| 66 |
| 67 if (!object) |
| 68 return; |
| 69 |
| 70 int xRef = object->xPos() + xPos(); |
| 71 int yRef = object->yPos() + yPos(); |
| 72 |
| 73 for (InlineRunBox* curr = firstBox; curr; curr = curr->nextLineBox()) { |
| 74 FloatRect rect(xRef + curr->xPos(), yRef + curr->yPos(), curr->width(),
curr->height()); |
| 75 // FIXME: broken with CSS transforms |
| 76 quads.append(absoluteTransform().mapRect(rect)); |
| 77 } |
| 78 } |
| 79 |
59 } | 80 } |
60 | 81 |
61 #endif // ENABLE(SVG) | 82 #endif // ENABLE(SVG) |
OLD | NEW |