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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 for (SVGElement* instance : set) { | 982 for (SVGElement* instance : set) { |
983 instance->setCorrespondingElement(0); | 983 instance->setCorrespondingElement(0); |
984 | 984 |
985 if (SVGUseElement* element = instance->correspondingUseElement()) { | 985 if (SVGUseElement* element = instance->correspondingUseElement()) { |
986 if (element->inDocument()) | 986 if (element->inDocument()) |
987 element->invalidateShadowTree(); | 987 element->invalidateShadowTree(); |
988 } | 988 } |
989 } | 989 } |
990 | 990 |
991 svgRareData()->elementInstances().clear(); | 991 svgRareData()->elementInstances().clear(); |
992 | |
993 if (inDocument()) | |
994 document().updateLayoutTreeIfNeeded(); | |
995 } | 992 } |
996 | 993 |
997 SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetEleme
nt) | 994 SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetEleme
nt) |
998 : m_targetElement(targetElement) | 995 : m_targetElement(targetElement) |
999 { | 996 { |
1000 if (m_targetElement) | 997 if (m_targetElement) |
1001 m_targetElement->setInstanceUpdatesBlocked(true); | 998 m_targetElement->setInstanceUpdatesBlocked(true); |
1002 } | 999 } |
1003 | 1000 |
1004 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() | 1001 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 Element::trace(visitor); | 1185 Element::trace(visitor); |
1189 } | 1186 } |
1190 | 1187 |
1191 const AtomicString& SVGElement::eventParameterName() | 1188 const AtomicString& SVGElement::eventParameterName() |
1192 { | 1189 { |
1193 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1190 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
1194 return evtString; | 1191 return evtString; |
1195 } | 1192 } |
1196 | 1193 |
1197 } // namespace blink | 1194 } // namespace blink |
OLD | NEW |