Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: Source/core/svg/SVGSVGElement.cpp

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« Source/core/html/HTMLObjectElement.cpp ('K') | « Source/core/svg/SVGForeignObjectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698