OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2014 Google, Inc. | 5 * Copyright (C) 2014 Google, 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // height attributes can affect the replaced size so we need | 295 // height attributes can affect the replaced size so we need |
296 // to mark it for updating. | 296 // to mark it for updating. |
297 // | 297 // |
298 // FIXME: For width/height animated as XML attributes on SVG | 298 // FIXME: For width/height animated as XML attributes on SVG |
299 // roots, there is an attribute synchronization missing. See | 299 // roots, there is an attribute synchronization missing. See |
300 // http://crbug.com/364807 | 300 // http://crbug.com/364807 |
301 if (widthChanged || heightChanged) { | 301 if (widthChanged || heightChanged) { |
302 RenderObject* renderObject = renderer(); | 302 RenderObject* renderObject = renderer(); |
303 if (renderObject && renderObject->isSVGRoot()) { | 303 if (renderObject && renderObject->isSVGRoot()) { |
304 invalidateSVGPresentationAttributeStyle(); | 304 invalidateSVGPresentationAttributeStyle(); |
305 setNeedsStyleRecalc(LocalStyleChange); | 305 setNeedsStyleRecalc(StyleRecalcDueToSVGContainerSizeChange, Loca
lStyleChange); |
306 } | 306 } |
307 } | 307 } |
308 } | 308 } |
309 | 309 |
310 if (SVGFitToViewBox::isKnownAttribute(attrName)) { | 310 if (SVGFitToViewBox::isKnownAttribute(attrName)) { |
311 updateRelativeLengthsOrViewBox = true; | 311 updateRelativeLengthsOrViewBox = true; |
312 if (RenderObject* object = renderer()) | 312 if (RenderObject* object = renderer()) |
313 object->setNeedsTransformUpdate(); | 313 object->setNeedsTransformUpdate(); |
314 } | 314 } |
315 | 315 |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 } | 775 } |
776 | 776 |
777 void SVGSVGElement::trace(Visitor* visitor) | 777 void SVGSVGElement::trace(Visitor* visitor) |
778 { | 778 { |
779 visitor->trace(m_timeContainer); | 779 visitor->trace(m_timeContainer); |
780 visitor->trace(m_viewSpec); | 780 visitor->trace(m_viewSpec); |
781 SVGGraphicsElement::trace(visitor); | 781 SVGGraphicsElement::trace(visitor); |
782 } | 782 } |
783 | 783 |
784 } | 784 } |
OLD | NEW |