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

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

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 7 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/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | 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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 ASSERT(!m_inRelativeLengthClientsInvalidation); 475 ASSERT(!m_inRelativeLengthClientsInvalidation);
476 #if !ASSERT_DISABLED 476 #if !ASSERT_DISABLED
477 TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelative LengthClientsInvalidation, true); 477 TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelative LengthClientsInvalidation, true);
478 #endif 478 #endif
479 479
480 RenderObject* renderer = this->renderer(); 480 RenderObject* renderer = this->renderer();
481 if (renderer && selfHasRelativeLengths()) { 481 if (renderer && selfHasRelativeLengths()) {
482 if (renderer->isSVGResourceContainer()) 482 if (renderer->isSVGResourceContainer())
483 toRenderSVGResourceContainer(renderer)->invalidateCacheAndMarkForLay out(layoutScope); 483 toRenderSVGResourceContainer(renderer)->invalidateCacheAndMarkForLay out(layoutScope);
484 else 484 else
485 renderer->setNeedsLayout(MarkContainingBlockChain, layoutScope); 485 renderer->setNeedsLayoutAndFullRepaint(MarkContainingBlockChain, lay outScope);
486 } 486 }
487 487
488 HashSet<SVGElement*>::iterator end = m_elementsWithRelativeLengths.end(); 488 HashSet<SVGElement*>::iterator end = m_elementsWithRelativeLengths.end();
489 for (HashSet<SVGElement*>::iterator it = m_elementsWithRelativeLengths.begin (); it != end; ++it) { 489 for (HashSet<SVGElement*>::iterator it = m_elementsWithRelativeLengths.begin (); it != end; ++it) {
490 if (*it != this) 490 if (*it != this)
491 (*it)->invalidateRelativeLengthClients(layoutScope); 491 (*it)->invalidateRelativeLengthClients(layoutScope);
492 } 492 }
493 } 493 }
494 494
495 SVGSVGElement* SVGElement::ownerSVGElement() const 495 SVGSVGElement* SVGElement::ownerSVGElement() const
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 animatableAttributes.add(SVGNames::zAttr); 1179 animatableAttributes.add(SVGNames::zAttr);
1180 } 1180 }
1181 1181
1182 if (name == classAttr) 1182 if (name == classAttr)
1183 return true; 1183 return true;
1184 1184
1185 return animatableAttributes.contains(name); 1185 return animatableAttributes.contains(name);
1186 } 1186 }
1187 #endif 1187 #endif
1188 } 1188 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698