| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2014 Google, Inc. | 4 * Copyright (C) 2014 Google, Inc. |
| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 return GetLayoutObject()->ObjectBoundingBox(); | 166 return GetLayoutObject()->ObjectBoundingBox(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 SVGRectTearOff* SVGGraphicsElement::getBBoxFromJavascript() { | 169 SVGRectTearOff* SVGGraphicsElement::getBBoxFromJavascript() { |
| 170 GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); | 170 GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); |
| 171 | 171 |
| 172 // FIXME: Eventually we should support getBBox for detached elements. | 172 // FIXME: Eventually we should support getBBox for detached elements. |
| 173 FloatRect boundingBox; | 173 FloatRect boundingBox; |
| 174 if (GetLayoutObject()) | 174 if (GetLayoutObject()) |
| 175 boundingBox = GetBBox(); | 175 boundingBox = GetBBox(); |
| 176 return SVGRectTearOff::Create(SVGRect::Create(boundingBox), 0, | 176 return SVGRectTearOff::CreateDetached(boundingBox); |
| 177 kPropertyIsNotAnimVal); | |
| 178 } | 177 } |
| 179 | 178 |
| 180 } // namespace blink | 179 } // namespace blink |
| OLD | NEW |