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

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: use AtomicString Created 6 years, 2 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
« no previous file with comments | « Source/core/svg/SVGForeignObjectElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(LocalStyleChange, StyleChangeReasonForTracin g::create(StyleChangeReason::SVGContainerSizeChange));
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
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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGForeignObjectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698