| 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 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
| 5 * 2006 Alexander Kellett <lypanov@kde.org> | 5 * 2006 Alexander Kellett <lypanov@kde.org> |
| 6 * 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 6 * 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 7 * 2007 Nikolas Zimmermann <zimmermann@kde.org> | 7 * 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 8 * 2008 Rob Buis <buis@kde.org> | 8 * 2008 Rob Buis <buis@kde.org> |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "SVGURIReference.h" | 42 #include "SVGURIReference.h" |
| 43 #include "SimpleFontData.h" | 43 #include "SimpleFontData.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 RenderSVGText::RenderSVGText(SVGTextElement* node) | 47 RenderSVGText::RenderSVGText(SVGTextElement* node) |
| 48 : RenderSVGBlock(node) | 48 : RenderSVGBlock(node) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 IntRect RenderSVGText::clippedOverflowRectForRepaint(RenderBox* /*repaintContain
er*/) | 52 IntRect RenderSVGText::clippedOverflowRectForRepaint(RenderBoxModelObject* /*rep
aintContainer*/) |
| 53 { | 53 { |
| 54 // FIXME: handle non-root repaintContainer | 54 // FIXME: handle non-root repaintContainer |
| 55 FloatRect repaintRect = absoluteTransform().mapRect(relativeBBox(true)); | 55 FloatRect repaintRect = absoluteTransform().mapRect(relativeBBox(true)); |
| 56 | 56 |
| 57 #if ENABLE(SVG_FILTERS) | 57 #if ENABLE(SVG_FILTERS) |
| 58 // Filters can expand the bounding box | 58 // Filters can expand the bounding box |
| 59 SVGResourceFilter* filter = getFilterById(document(), style()->svgStyle()->f
ilter()); | 59 SVGResourceFilter* filter = getFilterById(document(), style()->svgStyle()->f
ilter()); |
| 60 if (filter) | 60 if (filter) |
| 61 repaintRect.unite(filter->filterBBoxForItemBBox(repaintRect)); | 61 repaintRect.unite(filter->filterBBoxForItemBBox(repaintRect)); |
| 62 #endif | 62 #endif |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 repaintRect.move(x(), y()); | 216 repaintRect.move(x(), y()); |
| 217 return repaintRect; | 217 return repaintRect; |
| 218 } | 218 } |
| 219 | 219 |
| 220 } | 220 } |
| 221 | 221 |
| 222 #endif // ENABLE(SVG) | 222 #endif // ENABLE(SVG) |
| 223 | 223 |
| 224 // vim:ts=4:noet | 224 // vim:ts=4:noet |
| OLD | NEW |