OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |