| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // height attributes can affect the replaced size so we need | 293 // height attributes can affect the replaced size so we need |
| 294 // to mark it for updating. | 294 // to mark it for updating. |
| 295 // | 295 // |
| 296 // FIXME: For width/height animated as XML attributes on SVG | 296 // FIXME: For width/height animated as XML attributes on SVG |
| 297 // roots, there is an attribute synchronization missing. See | 297 // roots, there is an attribute synchronization missing. See |
| 298 // http://crbug.com/364807 | 298 // http://crbug.com/364807 |
| 299 if (widthChanged || heightChanged) { | 299 if (widthChanged || heightChanged) { |
| 300 RenderObject* renderObject = renderer(); | 300 RenderObject* renderObject = renderer(); |
| 301 if (renderObject && renderObject->isSVGRoot()) { | 301 if (renderObject && renderObject->isSVGRoot()) { |
| 302 invalidateSVGPresentationAttributeStyle(); | 302 invalidateSVGPresentationAttributeStyle(); |
| 303 setNeedsStyleRecalc(LocalStyleChange); | 303 setNeedsStyleRecalc(StyleChangeReasonForTracing::SVGContainerSiz
eChange, LocalStyleChange); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 if (SVGFitToViewBox::isKnownAttribute(attrName)) { | 308 if (SVGFitToViewBox::isKnownAttribute(attrName)) { |
| 309 updateRelativeLengthsOrViewBox = true; | 309 updateRelativeLengthsOrViewBox = true; |
| 310 if (RenderObject* object = renderer()) | 310 if (RenderObject* object = renderer()) |
| 311 object->setNeedsTransformUpdate(); | 311 object->setNeedsTransformUpdate(); |
| 312 } | 312 } |
| 313 | 313 |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 } | 773 } |
| 774 | 774 |
| 775 void SVGSVGElement::trace(Visitor* visitor) | 775 void SVGSVGElement::trace(Visitor* visitor) |
| 776 { | 776 { |
| 777 visitor->trace(m_timeContainer); | 777 visitor->trace(m_timeContainer); |
| 778 visitor->trace(m_viewSpec); | 778 visitor->trace(m_viewSpec); |
| 779 SVGGraphicsElement::trace(visitor); | 779 SVGGraphicsElement::trace(visitor); |
| 780 } | 780 } |
| 781 | 781 |
| 782 } // namespace blink | 782 } // namespace blink |
| OLD | NEW |