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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 | 974 |
975 if (SVGUseElement* element = instance->correspondingUseElement()) { | 975 if (SVGUseElement* element = instance->correspondingUseElement()) { |
976 if (element->isConnected()) | 976 if (element->isConnected()) |
977 element->invalidateShadowTree(); | 977 element->invalidateShadowTree(); |
978 } | 978 } |
979 } | 979 } |
980 | 980 |
981 svgRareData()->elementInstances().clear(); | 981 svgRareData()->elementInstances().clear(); |
982 } | 982 } |
983 | 983 |
| 984 void SVGElement::setNeedsStyleRecalcForInstances(StyleChangeType changeType, con
st StyleChangeReasonForTracing& reason) |
| 985 { |
| 986 const HeapHashSet<WeakMember<SVGElement>>& set = instancesForElement(); |
| 987 if (set.isEmpty()) |
| 988 return; |
| 989 |
| 990 for (SVGElement* instance : set) |
| 991 instance->setNeedsStyleRecalc(changeType, reason); |
| 992 } |
| 993 |
984 SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetEleme
nt) | 994 SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetEleme
nt) |
985 : m_targetElement(targetElement) | 995 : m_targetElement(targetElement) |
986 { | 996 { |
987 if (m_targetElement) | 997 if (m_targetElement) |
988 m_targetElement->setInstanceUpdatesBlocked(true); | 998 m_targetElement->setInstanceUpdatesBlocked(true); |
989 } | 999 } |
990 | 1000 |
991 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() | 1001 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
992 { | 1002 { |
993 if (m_targetElement) | 1003 if (m_targetElement) |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 Element::trace(visitor); | 1179 Element::trace(visitor); |
1170 } | 1180 } |
1171 | 1181 |
1172 const AtomicString& SVGElement::eventParameterName() | 1182 const AtomicString& SVGElement::eventParameterName() |
1173 { | 1183 { |
1174 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1184 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
1175 return evtString; | 1185 return evtString; |
1176 } | 1186 } |
1177 | 1187 |
1178 } // namespace blink | 1188 } // namespace blink |
OLD | NEW |