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

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

Issue 23785014: [SVG] Resources should be laid out in dependecy order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: text-layout-crash.html needs image result update. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGElement.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 * 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void SVGSVGElement::svgAttributeChanged(const QualifiedName& attrName) 273 void SVGSVGElement::svgAttributeChanged(const QualifiedName& attrName)
274 { 274 {
275 bool updateRelativeLengthsOrViewBox = false; 275 bool updateRelativeLengthsOrViewBox = false;
276 bool widthChanged = attrName == SVGNames::widthAttr; 276 bool widthChanged = attrName == SVGNames::widthAttr;
277 if (widthChanged 277 if (widthChanged
278 || attrName == SVGNames::heightAttr 278 || attrName == SVGNames::heightAttr
279 || attrName == SVGNames::xAttr 279 || attrName == SVGNames::xAttr
280 || attrName == SVGNames::yAttr) { 280 || attrName == SVGNames::yAttr) {
281 updateRelativeLengthsOrViewBox = true; 281 updateRelativeLengthsOrViewBox = true;
282 updateRelativeLengthsInformation(); 282 updateRelativeLengthsInformation();
283 invalidateRelativeLengthClients();
283 284
284 // At the SVG/HTML boundary (aka RenderSVGRoot), the width attribute can 285 // At the SVG/HTML boundary (aka RenderSVGRoot), the width attribute can
285 // affect the replaced size so we need to mark it for updating. 286 // affect the replaced size so we need to mark it for updating.
286 if (widthChanged) { 287 if (widthChanged) {
287 RenderObject* renderObject = renderer(); 288 RenderObject* renderObject = renderer();
288 if (renderObject && renderObject->isSVGRoot()) 289 if (renderObject && renderObject->isSVGRoot())
289 toRenderSVGRoot(renderObject)->setNeedsLayoutAndPrefWidthsRecalc (); 290 toRenderSVGRoot(renderObject)->setNeedsLayoutAndPrefWidthsRecalc ();
290 } 291 }
291 } 292 }
292 293
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 continue; 774 continue;
774 775
775 Element* element = toElement(node); 776 Element* element = toElement(node);
776 if (element->getIdAttribute() == id) 777 if (element->getIdAttribute() == id)
777 return element; 778 return element;
778 } 779 }
779 return 0; 780 return 0;
780 } 781 }
781 782
782 } 783 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698