OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> | 3 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> |
4 2007 Eric Seidel <eric@webkit.org> | 4 2007 Eric Seidel <eric@webkit.org> |
5 | 5 |
6 This file is part of the KDE project | 6 This file is part of the KDE project |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 { | 252 { |
253 graphicsContext->addFocusRingRect(m_absoluteBounds); | 253 graphicsContext->addFocusRingRect(m_absoluteBounds); |
254 } | 254 } |
255 | 255 |
256 void RenderSVGRoot::absoluteRects(Vector<IntRect>& rects, int, int) | 256 void RenderSVGRoot::absoluteRects(Vector<IntRect>& rects, int, int) |
257 { | 257 { |
258 for (RenderObject* current = firstChild(); current != 0; current = current->
nextSibling()) | 258 for (RenderObject* current = firstChild(); current != 0; current = current->
nextSibling()) |
259 current->absoluteRects(rects, 0, 0); | 259 current->absoluteRects(rects, 0, 0); |
260 } | 260 } |
261 | 261 |
| 262 void RenderSVGRoot::absoluteQuads(Vector<FloatQuad>& quads, bool topLevel) |
| 263 { |
| 264 for (RenderObject* current = firstChild(); current != 0; current = current->
nextSibling()) |
| 265 current->absoluteQuads(quads); |
| 266 } |
| 267 |
262 AffineTransform RenderSVGRoot::absoluteTransform() const | 268 AffineTransform RenderSVGRoot::absoluteTransform() const |
263 { | 269 { |
264 AffineTransform ctm = RenderContainer::absoluteTransform(); | 270 AffineTransform ctm = RenderContainer::absoluteTransform(); |
265 ctm.translate(m_x, m_y); | 271 ctm.translate(m_x, m_y); |
266 SVGSVGElement* svg = static_cast<SVGSVGElement*>(element()); | 272 SVGSVGElement* svg = static_cast<SVGSVGElement*>(element()); |
267 ctm.scale(svg->currentScale()); | 273 ctm.scale(svg->currentScale()); |
268 ctm.translate(svg->currentTranslate().x(), svg->currentTranslate().y()); | 274 ctm.translate(svg->currentTranslate().x(), svg->currentTranslate().y()); |
269 ctm.translate(viewport().x(), viewport().y()); | 275 ctm.translate(viewport().x(), viewport().y()); |
270 return svg->viewBoxToViewTransform(width(), height()) * ctm; | 276 return svg->viewBoxToViewTransform(width(), height()) * ctm; |
271 } | 277 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 // Spec: Only graphical elements can be targeted by the mouse, period. | 331 // Spec: Only graphical elements can be targeted by the mouse, period. |
326 // 16.4: "If there are no graphics elements whose relevant graphics content
is under the pointer (i.e., there is no target element), the event is not dispat
ched." | 332 // 16.4: "If there are no graphics elements whose relevant graphics content
is under the pointer (i.e., there is no target element), the event is not dispat
ched." |
327 return false; | 333 return false; |
328 } | 334 } |
329 | 335 |
330 } | 336 } |
331 | 337 |
332 #endif // ENABLE(SVG) | 338 #endif // ENABLE(SVG) |
333 | 339 |
334 // vim:ts=4:noet | 340 // vim:ts=4:noet |
OLD | NEW |