OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 invalidateMPathDependencies(); | 200 invalidateMPathDependencies(); |
201 return InsertionDone; | 201 return InsertionDone; |
202 } | 202 } |
203 | 203 |
204 void SVGPathElement::removedFrom(ContainerNode* rootParent) | 204 void SVGPathElement::removedFrom(ContainerNode* rootParent) |
205 { | 205 { |
206 SVGGeometryElement::removedFrom(rootParent); | 206 SVGGeometryElement::removedFrom(rootParent); |
207 invalidateMPathDependencies(); | 207 invalidateMPathDependencies(); |
208 } | 208 } |
209 | 209 |
| 210 FloatRect SVGPathElement::getBBox() |
| 211 { |
| 212 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
| 213 |
| 214 // We want the exact bounds. |
| 215 return SVGPathElement::asPath().boundingRect(Path::BoundsType::Exact); |
| 216 } |
| 217 |
210 } // namespace blink | 218 } // namespace blink |
OLD | NEW |